From: Aaro Koskinen Date: Tue, 26 Apr 2011 09:25:27 +0000 (-0700) Subject: OMAP3+: smartreflex: delete instance from sr_list on probe error X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=833d78fc58774738a6fe7175794b9a9b251afa88;p=linux-beck.git OMAP3+: smartreflex: delete instance from sr_list on probe error If the probe fails, the node should be deleted from sr_list. 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 156807eaadaa..f0a488ab3253 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));