mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
gpio: amd8111: unmap ioport on failure case
This change unmaps ioport when gpiochip_add fails Signed-off-by: Pramod Gurav <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
580b9676e5
commit
8fb87deb95
1 changed files with 1 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ found:
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue