projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
271b874
)
mtd: sh_flctl: Add missing iounmap()
author
Bastian Hecht
<
[email protected]
>
Mon, 14 May 2012 12:14:40 +0000
(14:14 +0200)
committer
David Woodhouse
<
[email protected]
>
Fri, 6 Jul 2012 17:17:03 +0000
(18:17 +0100)
Add the unmapping for the error case and for the driver removal.
Signed-off-by: Bastian Hecht <
[email protected]
>
Acked-by: Laurent Pinchart <
[email protected]
>
Signed-off-by: Artem Bityutskiy <
[email protected]
>
Signed-off-by: David Woodhouse <
[email protected]
>
drivers/mtd/nand/sh_flctl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/sh_flctl.c
b/drivers/mtd/nand/sh_flctl.c
index aa9b8a5e0b8f94b66f6356b4346000feeea0e6d8..a5a60cac7e7008eb404f78362b01d7311d92d0d3 100644
(file)
--- 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;