clk: rockchip: don't return NULL when registering inverter fails
commitddd02e145611d1689e5014e79d7f37dcd323b70b
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 15 Feb 2016 03:33:33 +0000 (15 11:33 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 15 Feb 2016 22:35:20 +0000 (15 23:35 +0100)
tree8a19b9b24545feefb15d4ebd5756c5447f6f33f1
parenteb4e10c61ddb513dae6508a16eedd2da59effb98
clk: rockchip: don't return NULL when registering inverter fails

Avoid return NULL if rockchip_clk_register_inverter fails, otherwise
rockchip_clk_register_branches print "unknown clock type". The acutal
case is that it's a known clock type but we fail to regiser it, which
may makes user confuse the reason of failure.

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