From: Bastian Hecht Date: Mon, 14 May 2012 12:14:40 +0000 (+0200) Subject: mtd: sh_flctl: Add missing iounmap() X-Git-Tag: v3.7-rc1~70^2~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb54751d7a706b4a068b798b97e8a815b99fa835;p=profile%2Fivi%2Fkernel-x86-ivi.git mtd: sh_flctl: Add missing iounmap() Add the unmapping for the error case and for the driver removal. Signed-off-by: Bastian Hecht Acked-by: Laurent Pinchart Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index aa9b8a5..a5a60ca 100644 --- a/drivers/mtd/nand/sh_flctl.c +++ b/drivers/mtd/nand/sh_flctl.c @@ -918,6 +918,7 @@ static int __devinit flctl_probe(struct platform_device *pdev) err_chip: pm_runtime_disable(&pdev->dev); + iounmap(flctl->reg); err_iomap: kfree(flctl); return ret; @@ -929,6 +930,7 @@ static int __devexit flctl_remove(struct platform_device *pdev) nand_release(&flctl->mtd); pm_runtime_disable(&pdev->dev); + iounmap(flctl->reg); kfree(flctl); return 0;