Skip to content

Commit

Permalink
[WATCHDOG] at32ap700x-wdt: add missing iounmap in _remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans-Christian Egtvedt authored and Wim Van Sebroeck committed Jun 10, 2007
1 parent 97a2a2e commit ff73231
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/watchdog/at32ap700x_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff73231

Please sign in to comment.