Skip to content

Commit

Permalink
OMAP4: fix return value of omap4_l3_init
Browse files Browse the repository at this point in the history
Don't PTR_ERR() a non-error pointer:

 initcall omap4_l3_init+0x0/0xdc returned -544980480 after 0 usecs
 initcall omap4_l3_init+0x0/0xdc returned with error code -544980480

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Rabin Vincent authored and Tony Lindgren committed Jun 1, 2011
1 parent 50b4860 commit 1499f2d
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 @@ -97,7 +97,7 @@ static int __init omap4_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(omap4_l3_init);

Expand Down

0 comments on commit 1499f2d

Please sign in to comment.