From: Aaro Koskinen Date: Tue, 26 Apr 2011 09:25:10 +0000 (-0700) Subject: OMAP3+: smartreflex: fix sr_late_init() error path in probe X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0bf6e2eca2a32fc6ea69eb499313234476a526d7;p=mv-sheeva.git 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 Signed-off-by: Kevin Hilman --- diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 13e24f913dd..dbc4b6f1229 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; } }