Skip to content

Commit

Permalink
OMAP3+: smartreflex: delete instance from sr_list on probe error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Tony Lindgren committed May 3, 2011
1 parent 0c49cc1 commit 833d78f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-omap2/smartreflex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 833d78f

Please sign in to comment.