diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 05:44:44 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-07-04 08:10:51 -0400 |
commit | 1261674a2dded2b5b055f51fb44677a8654d3f06 (patch) | |
tree | b62190ef934006dcd7d2cc4122c91285e3d61142 /arch/arm/mach-omap2/devices.c | |
parent | 9847bd481084249b30308776ecf660b486a6c3d8 (diff) |
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/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index aef96e45cb20..c3bc58b88fa6 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -66,7 +66,7 @@ static int __init omap3_l3_init(void) | |||
66 | 66 | ||
67 | WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); | 67 | WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); |
68 | 68 | ||
69 | return IS_ERR(pdev) ? PTR_ERR(pdev) : 0; | 69 | return PTR_RET(pdev); |
70 | } | 70 | } |
71 | omap_postcore_initcall(omap3_l3_init); | 71 | omap_postcore_initcall(omap3_l3_init); |
72 | 72 | ||
@@ -100,7 +100,7 @@ static int __init omap4_l3_init(void) | |||
100 | 100 | ||
101 | WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); | 101 | WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); |
102 | 102 | ||
103 | return IS_ERR(pdev) ? PTR_ERR(pdev) : 0; | 103 | return PTR_RET(pdev); |
104 | } | 104 | } |
105 | omap_postcore_initcall(omap4_l3_init); | 105 | omap_postcore_initcall(omap4_l3_init); |
106 | 106 | ||