diff options
| -rw-r--r-- | arch/arm/mach-omap1/devices.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index ea0d80a89da7..e7f9ee63dce5 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
| @@ -321,10 +321,9 @@ static struct platform_device omap_wdt_device = { | |||
| 321 | static int __init omap_init_wdt(void) | 321 | static int __init omap_init_wdt(void) |
| 322 | { | 322 | { |
| 323 | if (!cpu_is_omap16xx()) | 323 | if (!cpu_is_omap16xx()) |
| 324 | return; | 324 | return -ENODEV; |
| 325 | 325 | ||
| 326 | platform_device_register(&omap_wdt_device); | 326 | return platform_device_register(&omap_wdt_device); |
| 327 | return 0; | ||
| 328 | } | 327 | } |
| 329 | subsys_initcall(omap_init_wdt); | 328 | subsys_initcall(omap_init_wdt); |
| 330 | #endif | 329 | #endif |
