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:
parent
0c49cc167c
commit
833d78fc58
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue