]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
clk: actions: Don't reference clk_init_data after registration
authorStephen Boyd <sboyd@kernel.org>
Wed, 31 Jul 2019 19:35:09 +0000 (12:35 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 18 Oct 2019 08:26:16 +0000 (04:26 -0400)
commitcf0cf7db15fa6fe9c6199d1c07b245a666ae3f41
treec6a1286e8fd6225af86c0d0ddaf742bd3e2bd5a6
parent552d57ae69a8550f3544b5f0c8a4f52a887e7f33
clk: actions: Don't reference clk_init_data after registration

BugLink: https://bugs.launchpad.net/bugs/1848047
[ Upstream commit cf9ec1fc6d7cceb73e7f1efd079d2eae173fdf57 ]

A future patch is going to change semantics of clk_register() so that
clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid
referencing this member here so that we don't run into NULL pointer
exceptions.

Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190731193517.237136-2-sboyd@kernel.org
[sboyd@kernel.org: Move name to after checking for error or NULL hw]
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/clk/actions/owl-common.c