arm: omap1: devices: need to return with a value

Get rid of the following warning:

arch/arm/mach-omap1/devices.c: In function 'omap_init_wdt':
arch/arm/mach-omap1/devices.c:298: warning: 'return' with
no value, in function returning non-void

while at that, also change:

platform_device_register();
return 0;

into:

return platform_device_register();

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by Felipe Balbi and committed by Tony Lindgren dfcccd3a 1cff502d

+2 -3
+2 -3
arch/arm/mach-omap1/devices.c
··· 321 321 static int __init omap_init_wdt(void) 322 322 { 323 323 if (!cpu_is_omap16xx()) 324 - return; 324 + return -ENODEV; 325 325 326 - platform_device_register(&omap_wdt_device); 327 - return 0; 326 + return platform_device_register(&omap_wdt_device); 328 327 } 329 328 subsys_initcall(omap_init_wdt); 330 329 #endif