gpio: exar: Allocate resources on behalf of the platform device
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 9 Jun 2017 18:33:11 +0000 (20:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 08:14:03 +0000 (10:14 +0200)
commit5dab5872e59390aa9cca26ee629b95f7179f6c77
treee7dd9c7417469325777186944d9b20b4bbcc4f00
parentd3936d7437e388f3a91995e8f07fb82affff2f0d
gpio: exar: Allocate resources on behalf of the platform device

Do not allocate resources on behalf of the parent device but on our own.
Otherwise, cleanup does not properly work if gpio-exar is removed but
not the parent device.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-exar.c