Skip to content

Commit dfcccd3

Browse files
Felipe Balbitmlind
authored andcommitted
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 <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 1cff502 commit dfcccd3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/arm/mach-omap1/devices.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@ static struct platform_device omap_wdt_device = {
321321
static int __init omap_init_wdt(void)
322322
{
323323
if (!cpu_is_omap16xx())
324-
return;
324+
return -ENODEV;
325325

326-
platform_device_register(&omap_wdt_device);
327-
return 0;
326+
return platform_device_register(&omap_wdt_device);
328327
}
329328
subsys_initcall(omap_init_wdt);
330329
#endif

0 commit comments

Comments
 (0)