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>
This commit is contained in:
Aaro Koskinen 2011-04-26 02:25:27 -07:00 committed by Tony Lindgren
parent 0c49cc167c
commit 833d78fc58
1 changed files with 1 additions and 0 deletions

View File

@ -954,6 +954,7 @@ static int __init omap_sr_probe(struct platform_device *pdev)
return ret; return ret;
err_iounmap: err_iounmap:
list_del(&sr_info->node);
iounmap(sr_info->base); iounmap(sr_info->base);
err_release_region: err_release_region:
release_mem_region(mem->start, resource_size(mem)); release_mem_region(mem->start, resource_size(mem));