Message ID | 1498555620-25094-5-git-send-email-daniel.lezcano@linaro.org |
---|---|
State | Accepted |
Commit | 8c3ecd60e2ee6268e1735952e5b544f05b4dbb5a |
Headers | show |
Series | [1/5] clocksource/drivers/timer-of: Fix invalid iomap check | expand |
diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index e31e083..17b861e 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c @@ -167,10 +167,11 @@ static int __init gic_clocksource_of_init(struct device_node *node) clk = of_clk_get(node, 0); if (!IS_ERR(clk)) { - if (clk_prepare_enable(clk) < 0) { + ret = clk_prepare_enable(clk); + if (ret < 0) { pr_err("GIC failed to enable clock\n"); clk_put(clk); - return PTR_ERR(clk); + return ret; } gic_frequency = clk_get_rate(clk);