mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
[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
@ -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 New Issue
Block a user