[PATCH v3 01/10] mtd: sh_flctl: Add missing iounmap()
Bastian Hecht
hechtb at googlemail.com
Wed May 2 05:41:41 EDT 2012
Add the unmapping for the error case and for the driver removal.
Signed-off-by: Bastian Hecht <hechtb at gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
drivers/mtd/nand/sh_flctl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index 2ee9a1b..ed86a64 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -919,6 +919,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;
@@ -930,6 +931,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;
--
1.7.5.4
More information about the linux-mtd
mailing list