[PATCH 1/1] at32ap700x-wdt: add missing iounmap in _remove

From: Hans-Christian Egtvedt
Date: Fri Jun 08 2007 - 02:04:43 EST


Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@xxxxxxxxx>
---
drivers/char/watchdog/at32ap700x_wdt.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/char/watchdog/at32ap700x_wdt.c b/drivers/char/watchdog/at32ap700x_wdt.c
index 89fd9dc..56ace8c 100644
--- a/drivers/char/watchdog/at32ap700x_wdt.c
+++ b/drivers/char/watchdog/at32ap700x_wdt.c
@@ -257,6 +257,7 @@ static int __exit at32_wdt_remove(struct platform_device *pdev)
{
if (wdt && platform_get_drvdata(pdev) == wdt) {
misc_deregister(&wdt->miscdev);
+ iounmap(wdt->regs);
kfree(wdt);
wdt = NULL;
platform_set_drvdata(pdev, NULL);
--
1.4.4.2


--=-YR78brQj3/dMirmreQ2a--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/