[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:
parent
97a2a2ea1a
commit
ff73231611
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue