macintosh/macio-adb: add missing iounmap() on error in macio_init()

Add missing iounmap(), if request_irq() fails.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230105064145.3879356-1-yangyingliang@huawei.com
This commit is contained in:
Yang Yingliang 2023-01-05 14:41:45 +08:00 committed by Michael Ellerman
parent b574b817cc
commit 6db51ff905
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ int macio_init(void)
irq = irq_of_parse_and_map(adbs, 0);
of_node_put(adbs);
if (request_irq(irq, macio_adb_interrupt, 0, "ADB", (void *)0)) {
iounmap(adb);
printk(KERN_ERR "ADB: can't get irq %d\n", irq);
return -EAGAIN;
}