Browse Source

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>
Aaro Koskinen 14 years ago
parent
commit
0bf6e2eca2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/mach-omap2/smartreflex.c

+ 1 - 1
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;
 		}
 	}