GPIO: gpio-generic: remove kfree() from bgpio_remove call
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 11 Apr 2013 17:23:22 +0000 (21:23 +0400)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Apr 2013 17:33:54 +0000 (19:33 +0200)
commit2ce7c62d1b18dca13c715c6bc2eea17f723576ff
treedc2abc55393213a296e1ad6418922003677c4077
parent7fc7acb9a0b0ff3ffdf21818fe0735ebaf4fecb8
GPIO: gpio-generic: remove kfree() from bgpio_remove call

Memory for basic-mmio-gpio driver is allocated by the driver
using it, whether it's the generic GPIO driver itself or another
driver. In either case, the owner shall allocate and free the
struct bgpio_chip it is using, preferably using a managed
resource.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-generic.c