Skip to content

Commit

Permalink
arm: mach-omap2: devices: fix omap3_l3_init() return value
Browse files Browse the repository at this point in the history
Fix the return value for the successful case.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Aaro Koskinen authored and Tony Lindgren committed Mar 18, 2011
1 parent 05f6894 commit 3613386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int __init omap3_l3_init(void)

WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name);

return PTR_ERR(od);
return IS_ERR(od) ? PTR_ERR(od) : 0;
}
postcore_initcall(omap3_l3_init);

Expand Down

0 comments on commit 3613386

Please sign in to comment.