Message ID | 1289198880-8302-1-git-send-email-balbi@ti.com (mailing list archive) |
---|---|
State | Accepted |
Commit | dfcccd3aaba15e4e8ffae65fb2a757b3e49470de |
Delegated to: | Tony Lindgren |
Headers | show |
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index ea0d80a..e7f9ee6 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 = { static int __init omap_init_wdt(void) { if (!cpu_is_omap16xx()) - return; + return -ENODEV; - platform_device_register(&omap_wdt_device); - return 0; + return platform_device_register(&omap_wdt_device); } subsys_initcall(omap_init_wdt); #endif