commit | 7e196aa1a011da35a04cb1f161e186563aa8d8db | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Wed Jul 06 12:18:34 2016 +0000 |
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | Mon Aug 08 19:27:33 2016 +0200 |
tree | 548a8c751f01574a023a5aa9e960b31b96a97b9c | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc [diff] |
clk: sunxi: pll2: Fix return value check in sun4i_pll2_setup() In case of error, the functions clk_register_composite() and clk_register_divider() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>