提交 833d78fc 编写于 作者: A Aaro Koskinen 提交者: Tony Lindgren

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: NAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: NKevin Hilman <khilman@ti.com>
上级 0c49cc16
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册