summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/time-armada-370-xp.c
diff options
context:
space:
mode:
authorAnna-Maria Gleixner <anna-maria@linutronix.de>2016-07-12 16:40:09 +0200
committerThomas Gleixner <tglx@linutronix.de>2016-07-12 17:33:22 +0200
commit1d661bf5327a2c059ec967f850e89362e637f4e6 (patch)
treeda6f69e825a1d0622ee8e87cd30091e01bce5985 /drivers/clocksource/time-armada-370-xp.c
parentMerge branch 'clockevents/4.8' of http://git.linaro.org/people/daniel.lezcano... (diff)
downloadlinux-1d661bf5327a2c059ec967f850e89362e637f4e6.tar.xz
linux-1d661bf5327a2c059ec967f850e89362e637f4e6.zip
clocksource/drivers/time-armada-370-xp: Fix return value check
The failure check of armada_370_xp_timer_setup() in armada_370_xp_timer_common_init() is negated. This leads to an error message and exit in case of a successful initialization. Remove the stray '!'. Fixes: 12549e27c63c ("clocksource/drivers/time-armada-370-xp: Convert init function to return error") Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1607121731020.1344@hypnos.tec.linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/clocksource/time-armada-370-xp.c')
-rw-r--r--drivers/clocksource/time-armada-370-xp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c
index a4e59239f28e..20ec066481fe 100644
--- a/drivers/clocksource/time-armada-370-xp.c
+++ b/drivers/clocksource/time-armada-370-xp.c
@@ -342,7 +342,7 @@ static int __init armada_370_xp_timer_common_init(struct device_node *np)
}
res = armada_370_xp_timer_setup(this_cpu_ptr(armada_370_xp_evt));
- if (!res) {
+ if (res) {
pr_err("Failed to setup timer");
return res;
}