OMAP4: fix return value of omap4_l3_init
Subsystems (3)
PATCH 1/1 OMAP4: fix return value of omap4_l3_init
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
--- arch/arm/mach-omap2/devices.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/devices.c +1 -1
@@ -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);
Signature · 1 line
1.7.4.1
PATCH 1/1 OMAP4: fix return value of omap4_l3_init
Quoted 6 lines · Rabin Vincent
Don't
PTR_ERR()a non-error pointer:?initcall
omap4_l3_init+0x0/0xdcreturned -544980480 after 0 usecs ?initcallomap4_l3_init+0x0/0xdcreturned with error code -544980480Signed-off-by Rabin Vincent <[email protected]>
Ping?
(with some git blame'd people now on cc.)
Quoted 21 lines
---
?arch/arm/mach-omap2/devices.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-omap2/devices.c +1
-2@@ -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); --1.7.4.1
Tony Lindgren
maintainerPATCH 1/1 OMAP4: fix return value of omap4_l3_init
In reply to Rabin VincentQuoted 4 lines · Rabin Vincent
Don't
PTR_ERR()a non-error pointer:initcall
omap4_l3_init+0x0/0xdcreturned -544980480 after 0 usecs initcallomap4_l3_init+0x0/0xdcreturned with error code -544980480
Adding to fixes thanks.
Tony
Quoted 21 lines
Signed-off-by Rabin Vincent <[email protected]>--- arch/arm/mach-omap2/devices.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-omap2/devices.c +1
-1@@ -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);Signature · 1 line
1.7.4.1