diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-06-14 07:02:30 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-14 07:02:30 -0400 |
commit | 6fe32a468521d45edc35d92cdc05cd74e930426a (patch) | |
tree | 44d5f23edb460ae9f44bc863eee2c65fef7bb758 /arch/sh/kernel/time.c | |
parent | a34c7e3e7b0e7db67ffef21ba3056eb2f807ba4a (diff) |
sh: Bump the earlytimer probe devices up.
Presently the earlytimer probe handles the clockevents driver, which
requires that the clockevents driver be registered first. This bumps it
up by 1 to include the clocksource device, which can be safely ignored
if it doesn't exist, as we will simply error out on that path and defer
to the jiffies clocksource.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/time.c')
-rw-r--r-- | arch/sh/kernel/time.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 960d9abd1058..9b352a1e3fb4 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c | |||
@@ -108,8 +108,13 @@ void __init time_init(void) | |||
108 | 108 | ||
109 | /* | 109 | /* |
110 | * Make sure all compiled-in early timers register themselves. | 110 | * Make sure all compiled-in early timers register themselves. |
111 | * Run probe() for one "earlytimer" device. | 111 | * |
112 | * Run probe() for two "earlytimer" devices, these will be the | ||
113 | * clockevents and clocksource devices respectively. In the event | ||
114 | * that only a clockevents device is available, we -ENODEV on the | ||
115 | * clocksource and the jiffies clocksource is used transparently | ||
116 | * instead. No error handling is necessary here. | ||
112 | */ | 117 | */ |
113 | early_platform_driver_register_all("earlytimer"); | 118 | early_platform_driver_register_all("earlytimer"); |
114 | early_platform_driver_probe("earlytimer", 1, 0); | 119 | early_platform_driver_probe("earlytimer", 2, 0); |
115 | } | 120 | } |