projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b4860
)
OMAP4: fix return value of omap4_l3_init
author
Rabin Vincent
<rabin@rab.in>
Sat, 7 May 2011 16:58:47 +0000
(22:28 +0530)
committer
Tony Lindgren
<tony@atomide.com>
Wed, 1 Jun 2011 09:25:04 +0000
(
02:25
-0700)
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>
arch/arm/mach-omap2/devices.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-omap2/devices.c
b/arch/arm/mach-omap2/devices.c
index 7b855856459143a6cfaa8c20ab597d661c5213a5..5b8ca680ed93d2e9f919548cca05cb656f4ee787 100644
(file)
--- a/
arch/arm/mach-omap2/devices.c
+++ b/
arch/arm/mach-omap2/devices.c
@@
-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);