summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2019-08-15 19:00:17 +0300
committerStephen Boyd <sboyd@kernel.org>2019-08-16 20:20:15 +0300
commitc8cec4f4af99288acefa2caea77b07e06a32641c (patch)
tree913ac90151adc01e5053823dd29674b91edb585b /drivers/clk
parent1bc5557a3bffbac6c37c52c0f65ef78bfa147b85 (diff)
downloadlinux-c8cec4f4af99288acefa2caea77b07e06a32641c.tar.xz
clk: milbeaut: Don't reference clk_init_data after registration
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: Sugaya Taichi <sugaya.taichi@socionext.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lkml.kernel.org/r/20190815160020.183334-2-sboyd@kernel.org
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-milbeaut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-milbeaut.c b/drivers/clk/clk-milbeaut.c
index 5fc78faf820c..80b9d78493bc 100644
--- a/drivers/clk/clk-milbeaut.c
+++ b/drivers/clk/clk-milbeaut.c
@@ -437,7 +437,7 @@ static int m10v_clk_divider_set_rate(struct clk_hw *hw, unsigned long rate,
if (readl_poll_timeout(divider->write_valid_reg, val,
!val, M10V_UPOLL_RATE, M10V_UTIMEOUT))
pr_err("%s:%s couldn't stabilize\n",
- __func__, divider->hw.init->name);
+ __func__, clk_hw_get_name(hw));
}
if (divider->lock)