summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/pmu.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 09:44:44 (GMT)
committerTony Lindgren <tony@atomide.com>2013-07-04 12:10:51 (GMT)
commit1261674a2dded2b5b055f51fb44677a8654d3f06 (patch)
treeb62190ef934006dcd7d2cc4122c91285e3d61142 /arch/arm/mach-omap2/pmu.c
parent9847bd481084249b30308776ecf660b486a6c3d8 (diff)
downloadlinux-1261674a2dded2b5b055f51fb44677a8654d3f06.tar.xz
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/pmu.c')
-rw-r--r--arch/arm/mach-omap2/pmu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/pmu.c b/arch/arm/mach-omap2/pmu.c
index 9ace8ea..33c8846 100644
--- a/arch/arm/mach-omap2/pmu.c
+++ b/arch/arm/mach-omap2/pmu.c
@@ -54,10 +54,7 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[])
WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n",
dev_name);
- if (IS_ERR(omap_pmu_dev))
- return PTR_ERR(omap_pmu_dev);
-
- return 0;
+ return PTR_RET(omap_pmu_dev);
}
static int __init omap_init_pmu(void)