summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-busy.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-imx/clk-busy.c')
-rw-r--r--arch/arm/mach-imx/clk-busy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk-busy.c b/arch/arm/mach-imx/clk-busy.c
index 1a7a8dd045a1..1ab91b5209e6 100644
--- a/arch/arm/mach-imx/clk-busy.c
+++ b/arch/arm/mach-imx/clk-busy.c
@@ -108,7 +108,7 @@ struct clk *imx_clk_busy_divider(const char *name, const char *parent_name,
busy->div.hw.init = &init;
clk = clk_register(NULL, &busy->div.hw);
- if (!clk)
+ if (IS_ERR(clk))
kfree(busy);
return clk;