diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 f08ea9493d2f..a3e288701baf 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) | |||
257 | { | 257 | { |
258 | if (wdt && platform_get_drvdata(pdev) == wdt) { | 258 | if (wdt && platform_get_drvdata(pdev) == wdt) { |
259 | misc_deregister(&wdt->miscdev); | 259 | misc_deregister(&wdt->miscdev); |
260 | iounmap(wdt->regs); | ||
260 | kfree(wdt); | 261 | kfree(wdt); |
261 | wdt = NULL; | 262 | wdt = NULL; |
262 | platform_set_drvdata(pdev, NULL); | 263 | platform_set_drvdata(pdev, NULL); |