[WATCHDOG] at32ap700x-wdt: add missing iounmap in _remove
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>
Fri, 8 Jun 2007 18:01:47 +0000 (11:01 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 10 Jun 2007 20:11:27 +0000 (20:11 +0000)
Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/char/watchdog/at32ap700x_wdt.c

index f08ea9493d2fbf38597c3a010700a320ce5a79b4..a3e288701baffe0d03b8eb900ab8aaecc4d2cf23 100644 (file)
@@ -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);