gpio: amd8111: unmap ioport on failure case
authorPramod Gurav <pramod.gurav@smartplayin.com>
Wed, 1 Oct 2014 10:03:00 +0000 (15:33 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Oct 2014 15:26:35 +0000 (16:26 +0100)
commit8fb87deb95ce3a0fa320ebc9df19f6f928714861
treeb3136bb8a8d4a74de67306215f6d72327ae06054
parent580b9676e53af8f037002c16bafc7037319bbbce
gpio: amd8111: unmap ioport on failure case

This change unmaps ioport when gpiochip_add fails

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-amd8111.c