spi: omap-uwire: add missing iounmap
authorNishanth Menon <nm@ti.com>
Thu, 27 Mar 2014 16:07:59 +0000 (11:07 -0500)
committerMark Brown <broonie@linaro.org>
Thu, 27 Mar 2014 16:51:21 +0000 (16:51 +0000)
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap-uwire.c

index f5176bbfa6f1c9c749f73838edef63f5cb065f9f..31ce92ff738b26a1cf1391553050a6944720d925 100644 (file)
@@ -478,6 +478,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);