commit | 2ce7c62d1b18dca13c715c6bc2eea17f723576ff | [log] [tgz] |
---|---|---|
author | Alexander Shiyan <shc_work@mail.ru> | Thu Apr 11 21:23:22 2013 +0400 |
committer | Linus Walleij <linus.walleij@linaro.org> | Thu Apr 11 19:33:54 2013 +0200 |
tree | dc2abc55393213a296e1ad6418922003677c4077 | |
parent | 7fc7acb9a0b0ff3ffdf21818fe0735ebaf4fecb8 [diff] |
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>