]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
OMAP3+: smartreflex: delete instance from sr_list on probe error
authorAaro Koskinen <aaro.koskinen@nokia.com>
Tue, 26 Apr 2011 09:25:27 +0000 (02:25 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 3 May 2011 09:38:03 +0000 (02:38 -0700)
If the probe fails, the node should be deleted from sr_list.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/smartreflex.c

index 156807eaadaaa0b235fbf6fe1cf16595baa788d0..f0a488ab32538237dd0f78a7c61e6ce20e0664de 100644 (file)
@@ -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));