]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
clk: rockchip: don't return NULL when failing to register ddrclk branch
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 12 Oct 2016 12:31:41 +0000 (20:31 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 16 Oct 2016 00:39:58 +0000 (02:39 +0200)
commit4a262b14c57d6ec88982d40273e742f7b9151560
tree52a611fe7432d3c5c0133162ea28759c538954dc
parent1001354ca34179f3db924eb66672442a173147dc
clk: rockchip: don't return NULL when failing to register ddrclk branch

rockchip_clk_register_ddrclk should not return NULL when failing
to call clk_register, otherwise rockchip_clk_register_branches
prints "unknown clock type". The actual case is that it's a known
clock type but we fail to register it, which may makes user confuse
the reason of failure. And the pr_err here is pointless as
rockchip_clk_register_branches will also print the similar message.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-ddr.c