[-next] spi: omap-uwire: add missing iounmap
diff mbox

Message ID 1395936479-26069-1-git-send-email-nm@ti.com
State Accepted
Commit cbab80464f7470432b4b8061333c572a8b9a713f
Headers show

Commit Message

Nishanth Menon March 27, 2014, 4:07 p.m. UTC
This fixes the following coccicheck warning:
linux-2.6/drivers/spi/spi-omap-uwire.c:485:2-8: ERROR: missing iounmap; ioremap on line 471 and execution via conditional on line 481

Signed-off-by: Nishanth Menon <nm@ti.com>
---
based on: next-20140326 tag

 drivers/spi/spi-omap-uwire.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown March 27, 2014, 4:54 p.m. UTC | #1
On Thu, Mar 27, 2014 at 11:07:59AM -0500, Nishanth Menon wrote:
> This fixes the following coccicheck warning:
> linux-2.6/drivers/spi/spi-omap-uwire.c:485:2-8: ERROR: missing iounmap; ioremap on line 471 and execution via conditional on line 481

Applied, thanks.

Patch
diff mbox

diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c
index 95cc694..e47c9c6 100644
--- a/drivers/spi/spi-omap-uwire.c
+++ b/drivers/spi/spi-omap-uwire.c
@@ -482,6 +482,7 @@  static int uwire_probe(struct platform_device *pdev)
 		status = PTR_ERR(uwire->ck);
 		dev_dbg(&pdev->dev, "no functional clock?\n");
 		spi_master_put(master);
+		iounmap(uwire_base);
 		return status;
 	}
 	clk_enable(uwire->ck);