clk: sunxi: Fix checking return value of clk_register_[composite|factors]
authorAxel Lin <axel.lin@ingics.com>
Fri, 12 Jul 2013 08:15:15 +0000 (16:15 +0800)
committerMike Turquette <mturquette@linaro.org>
Thu, 8 Aug 2013 22:57:27 +0000 (15:57 -0700)
commitee85e9bd25773a30002769c8121b6ae62f23f2b4
tree4ad1a05ed33736f4255f7e36e2097d4aec3f1644
parent5cfe9614f365915d9e75d110d4008b06a5c0b99e
clk: sunxi: Fix checking return value of clk_register_[composite|factors]

clk_register_composite() and clk_register_factors() return ERR_PTR on error.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/sunxi/clk-sunxi.c