summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/clk/clk-asm9260.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/clk/clk-asm9260.c')
-rw-r--r--kernel/drivers/clk/clk-asm9260.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/clk/clk-asm9260.c b/kernel/drivers/clk/clk-asm9260.c
index 88f4ff691..90897af8d 100644
--- a/kernel/drivers/clk/clk-asm9260.c
+++ b/kernel/drivers/clk/clk-asm9260.c
@@ -274,7 +274,7 @@ static void __init asm9260_acc_init(struct device_node *np)
u32 accuracy = 0;
base = of_io_request_and_map(np, 0, np->name);
- if (!base)
+ if (IS_ERR(base))
panic("%s: unable to map resource", np->name);
/* register pll */