mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
mips: ar7: add missing iounmap() on error in ar7_gpio_init
Add the missing iounmap() of gpch->regs before return from ar7_gpio_init() in the error handling case. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
18ff14c87d
commit
5a5aa912f6
@ -319,6 +319,7 @@ int __init ar7_gpio_init(void)
|
||||
if (ret) {
|
||||
printk(KERN_ERR "%s: failed to add gpiochip\n",
|
||||
gpch->chip.label);
|
||||
iounmap(gpch->regs);
|
||||
return ret;
|
||||
}
|
||||
printk(KERN_INFO "%s: registered %d GPIOs\n",
|
||||
|
Loading…
Reference in New Issue
Block a user