summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 11:44:44 +0200
committerTony Lindgren <tony@atomide.com>2013-07-04 05:10:51 -0700
commit1261674a2dded2b5b055f51fb44677a8654d3f06 (patch)
treeb62190ef934006dcd7d2cc4122c91285e3d61142 /arch/arm/mach-omap2/gpmc.c
parent9847bd481084249b30308776ecf660b486a6c3d8 (diff)
downloadlinux-stable-1261674a2dded2b5b055f51fb44677a8654d3f06.tar.gz
linux-stable-1261674a2dded2b5b055f51fb44677a8654d3f06.tar.bz2
linux-stable-1261674a2dded2b5b055f51fb44677a8654d3f06.zip
ARM: OMAP2+: Cocci spatch "ptr_ret.spatch"
Cocci spatch "ptr_ret.spatch" Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Acked-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc.c')
-rw-r--r--arch/arm/mach-omap2/gpmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 1c7969e965d7..f3fdd6afa213 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -1734,7 +1734,7 @@ static int __init omap_gpmc_init(void)
pdev = omap_device_build(DEVICE_NAME, -1, oh, NULL, 0);
WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
- return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
+ return PTR_RET(pdev);
}
omap_postcore_initcall(omap_gpmc_init);