提交 8fb87deb 编写于 作者: P Pramod Gurav 提交者: Linus Walleij

gpio: amd8111: unmap ioport on failure case

This change unmaps ioport when gpiochip_add fails
Signed-off-by: NPramod Gurav <pramod.gurav@smartplayin.com>
Reviewed-by: NAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 580b9676
......@@ -223,6 +223,7 @@ static int __init amd_gpio_init(void)
if (err) {
printk(KERN_ERR "GPIO registering failed (%d)\n",
err);
ioport_unmap(gp.pm);
release_region(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE);
goto out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册