[WATCHDOG] at32ap700x-wdt: add missing iounmap in _remove

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>
This commit is contained in:
Hans-Christian Egtvedt 2007-06-08 11:01:47 -07:00 committed by Wim Van Sebroeck
parent 97a2a2ea1a
commit ff73231611

View 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);