summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/smartreflex.c
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@nokia.com>2011-04-26 02:25:27 -0700
committerTony Lindgren <tony@atomide.com>2011-05-03 02:38:03 -0700
commit833d78fc58774738a6fe7175794b9a9b251afa88 (patch)
tree15897c13f02ca43f56e20f8f1814474dfdc8ffdc /arch/arm/mach-omap2/smartreflex.c
parent0c49cc167c6365a1a514b1e44d7fa8378ff16c4c (diff)
downloadtalos-op-linux-833d78fc58774738a6fe7175794b9a9b251afa88.tar.gz
talos-op-linux-833d78fc58774738a6fe7175794b9a9b251afa88.zip
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 <aaro.koskinen@nokia.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/smartreflex.c')
-rw-r--r--arch/arm/mach-omap2/smartreflex.c1
1 files changed, 1 insertions, 0 deletions
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));
OpenPOWER on IntegriCloud