aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-davinci/devices.c')
-rw-r--r--arch/arm/mach-davinci/devices.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c
index 5cf9a027dcc6..6257aa452568 100644
--- a/arch/arm/mach-davinci/devices.c
+++ b/arch/arm/mach-davinci/devices.c
@@ -313,9 +313,9 @@ void davinci_restart(enum reboot_mode mode, const char *cmd)
313 davinci_watchdog_reset(&davinci_wdt_device); 313 davinci_watchdog_reset(&davinci_wdt_device);
314} 314}
315 315
316static void davinci_init_wdt(void) 316int davinci_init_wdt(void)
317{ 317{
318 platform_device_register(&davinci_wdt_device); 318 return platform_device_register(&davinci_wdt_device);
319} 319}
320 320
321static struct platform_device davinci_gpio_device = { 321static struct platform_device davinci_gpio_device = {
@@ -348,16 +348,3 @@ struct davinci_timer_instance davinci_timer_instance[2] = {
348 }, 348 },
349}; 349};
350 350
351/*-------------------------------------------------------------------------*/
352
353static int __init davinci_init_devices(void)
354{
355 /* please keep these calls, and their implementations above,
356 * in alphabetical order so they're easier to sort through.
357 */
358 davinci_init_wdt();
359
360 return 0;
361}
362arch_initcall(davinci_init_devices);
363