]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
clk: zx296718: Don't reference clk_init_data after registration
authorStephen Boyd <sboyd@kernel.org>
Thu, 15 Aug 2019 16:00:18 +0000 (09:00 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 16 Oct 2019 09:55:40 +0000 (11:55 +0200)
commit60f73a56238ff9d9b0b94d2636d67932d81474ca
treea4c4341f01c73a4a10b41fe5c45f119a06a95251
parent239d501a9ad8d17143854bf1b00d1758712211f5
clk: zx296718: Don't reference clk_init_data after registration

BugLink: https://bugs.launchpad.net/bugs/1848274
[ Upstream commit 1a4549c150e27dbc3aea762e879a88209df6d1a5 ]

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: Jun Nie <jun.nie@linaro.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190815160020.183334-3-sboyd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/clk/zte/clk-zx296718.c