From: Senthilvadivu Guruswamy Date: Thu, 7 Oct 2010 11:28:04 +0000 (+0200) Subject: OMAP: DSS2: DSI: Remove extra iounmap in error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e66345297d9ab3566eff0503d79eedda3c652428;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git OMAP: DSS2: DSI: Remove extra iounmap in error path iounmap is already done in label err2: so extra iounmap in the error handling path could be removed. Signed-off-by: Senthilvadivu Guruswamy Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index b3fa3a7db911..aa4f7a5fae29 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -3274,7 +3274,6 @@ int dsi_init(struct platform_device *pdev) dsi.vdds_dsi_reg = dss_get_vdds_dsi(); if (IS_ERR(dsi.vdds_dsi_reg)) { - iounmap(dsi.base); DSSERR("can't get VDDS_DSI regulator\n"); r = PTR_ERR(dsi.vdds_dsi_reg); goto err2;