summaryrefslogtreecommitdiffstats
path: root/arch/x86
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/x86
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/x86')
-rw-r--r--arch/x86/mach-i386/pit_timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mach-i386/pit_timer.c b/arch/x86/mach-i386/pit_timer.c
index fbc7a10..857ba31 100644
--- a/arch/x86/mach-i386/pit_timer.c
+++ b/arch/x86/mach-i386/pit_timer.c
@@ -59,9 +59,8 @@ static struct clocksource cs = {
static int clocksource_init (void)
{
cs.mult = clocksource_hz2mult(1193182, cs.shift);
- init_clock(&cs);
- return 0;
+ return init_clock(&cs);
}
core_initcall(clocksource_init);