clk: divider: fix initialization with parent_hw
stable inclusion from stable-5.10.20 commit 5273b9ba3e9980d9a39a79d03c35efd22be50d50 bugzilla: 50608 -------------------------------- [ Upstream commit 0225daea ] If a driver registers a divider clock with a parent_hw instead of the parent_name, the parent_hw is ignored and the clock does not have a parent. Fix this by initializing the parents the same way they are initialized for clock gates. Fixes: ff258817 ("clk: divider: Add support for specifying parents via DT/pointers") Signed-off-by: NMichael Tretter <m.tretter@pengutronix.de> Reviewed-by: NStephen Boyd <sboyd@kernel.org> Acked-by: NMichal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/20210121071659.1226489-3-m.tretter@pengutronix.deSigned-off-by: NStephen Boyd <sboyd@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录