summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@nokia.com>2011-04-26 11:25:10 +0200
committerTony Lindgren <tony@atomide.com>2011-05-03 11:38:02 +0200
commit0bf6e2eca2a32fc6ea69eb499313234476a526d7 (patch)
tree9db3f3faf7c6f2e39040f5cf10948b28a720bb3e /arch
parentomap: Run make savedefconfig on omap2plus_defconfig to shrink it (diff)
downloadlinux-0bf6e2eca2a32fc6ea69eb499313234476a526d7.tar.xz
linux-0bf6e2eca2a32fc6ea69eb499313234476a526d7.zip
OMAP3+: smartreflex: fix sr_late_init() error path in probe
sr_late_init() will take care of freeing the resources. Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/smartreflex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 13e24f913dd4..dbc4b6f12294 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -883,7 +883,7 @@ static int __init omap_sr_probe(struct platform_device *pdev)
ret = sr_late_init(sr_info);
if (ret) {
pr_warning("%s: Error in SR late init\n", __func__);
- goto err_release_region;
+ return ret;
}
}