diff mbox

[5/6] arm: mach-omap2: smartreflex: delete instance from sr_list on probe error

Message ID 1300984535-10530-5-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 e72b419..c8cd1ef 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -954,6 +954,7 @@  static int __init omap_sr_probe(struct platform_device *pdev)
 	return ret;
 
 err_iounmap:
+	list_del(&sr_info->node);
 	iounmap(sr_info->base);
 err_release_region:
 	release_mem_region(mem->start, resource_size(mem));