summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/clk/at91
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/clk/at91')
-rw-r--r--kernel/drivers/clk/at91/clk-h32mx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/clk/at91/clk-h32mx.c b/kernel/drivers/clk/at91/clk-h32mx.c
index 819f5842f..8e20c8a76 100644
--- a/kernel/drivers/clk/at91/clk-h32mx.c
+++ b/kernel/drivers/clk/at91/clk-h32mx.c
@@ -114,7 +114,7 @@ static void __init of_sama5d4_clk_h32mx_setup(struct device_node *np)
h32mxclk->regmap = regmap;
clk = clk_register(NULL, &h32mxclk->hw);
- if (!clk) {
+ if (IS_ERR(clk)) {
kfree(h32mxclk);
return;
}