mtd: sh_flctl: Add missing iounmap()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Jul 6 13:59:02 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=cb54751d7a706b4a068b798b97e8a815b99fa835
Commit: cb54751d7a706b4a068b798b97e8a815b99fa835
Parent: 271b874ba1512a1b3bd24edbd4e4116c3b5c15ae
Author: Bastian Hecht <hechtb at googlemail.com>
AuthorDate: Mon May 14 14:14:40 2012 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jul 6 18:17:03 2012 +0100
mtd: sh_flctl: Add missing iounmap()
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>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.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 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;
More information about the linux-mtd-cvs
mailing list