summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@nokia.com>2011-03-18 16:53:19 -0700
committerTony Lindgren <tony@atomide.com>2011-03-18 16:53:19 -0700
commit36133869c4b5b70e6acf6ff7ce25df526a6d5cae (patch)
treeb670ec148da4f95b3ab55421988747cf10802c3c /arch/arm
parent05f689400ea5fa3d71af82f910c8b140f87ad1f3 (diff)
downloadlinux-36133869c4b5b70e6acf6ff7ce25df526a6d5cae.tar.gz
linux-36133869c4b5b70e6acf6ff7ce25df526a6d5cae.tar.bz2
linux-36133869c4b5b70e6acf6ff7ce25df526a6d5cae.zip
arm: mach-omap2: devices: fix omap3_l3_init() return value
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 0d2d6a9c303c..d478f53f9084 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -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);