Commit ff732316 authored by Hans-Christian Egtvedt's avatar Hans-Christian Egtvedt Committed by Wim Van Sebroeck

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

Signed-off-by: default avatarHans-Christian Egtvedt <hcegtvedt@atmel.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 97a2a2ea
...@@ -257,6 +257,7 @@ static int __exit at32_wdt_remove(struct platform_device *pdev) ...@@ -257,6 +257,7 @@ static int __exit at32_wdt_remove(struct platform_device *pdev)
{ {
if (wdt && platform_get_drvdata(pdev) == wdt) { if (wdt && platform_get_drvdata(pdev) == wdt) {
misc_deregister(&wdt->miscdev); misc_deregister(&wdt->miscdev);
iounmap(wdt->regs);
kfree(wdt); kfree(wdt);
wdt = NULL; wdt = NULL;
platform_set_drvdata(pdev, NULL); platform_set_drvdata(pdev, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment