summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-10-30 12:06:09 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-10 08:42:19 +0100
commit9a4cb25a39eb82c7f0c373f4e5186e195d6a318e (patch)
treed959dd3dd4cf1db16381c4fe4183dcf744401048 /arch/nios2
parentea5abfb5c1e99bc4c67841c400c25ca83ddd9702 (diff)
downloadbarebox-9a4cb25a39eb82c7f0c373f4e5186e195d6a318e.tar.gz
treewide: Reuse init_clock() return value for clocksource drivers
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/lib/clock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/nios2/lib/clock.c b/arch/nios2/lib/clock.c
index 67cc778..28aed02 100644
--- a/arch/nios2/lib/clock.c
+++ b/arch/nios2/lib/clock.c
@@ -49,9 +49,7 @@ static int clocksource_init(void)
cs.mult = clocksource_hz2mult(NIOS_SOPC_TIMER_FREQ, cs.shift);
- init_clock(&cs);
-
- return 0;
+ return init_clock(&cs);
}
core_initcall(clocksource_init);