diff mbox

[2/6] arm: mach-omap2: smartreflex: fix sr_late_init() error path in probe

Message ID 1300984535-10530-2-git-send-email-aaro.koskinen@nokia.com (mailing list archive)
State New, archived
Headers show

Commit Message

Koskinen, Aaro (Nokia - FI/Espoo) March 24, 2011, 4:35 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 8f674c9..6dfc8db 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;
 		}
 	}