clk: wm831x: Fix clk_register() error code checking
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 24 Sep 2012 20:38:03 +0000 (13:38 -0700)
committerMike Turquette <mturquette@linaro.org>
Mon, 29 Oct 2012 18:12:33 +0000 (11:12 -0700)
commit980f58a45e04b248e9dd01b0eba510a3384160db
treeb71a95ea1e4cfbce6b96c11c7be993e4bc4ac4ae
parentbcd6f569e87471d7f104bd9497f0b516a3b12e32
clk: wm831x: Fix clk_register() error code checking

clk_register() returns an ERR_PTR upon failure, not NULL. Fix
these error paths.

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-wm831x.c