]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: prevent module from being unloaded while in use
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 25 Jun 2015 15:13:33 +0000 (18:13 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2015 12:26:03 +0000 (14:26 +0200)
commit986961a9b3ac5cd1453c0d5f553b87e3d671e91a
tree309e33543c8bde9af9739b68614344a4f5973407
parente981d33ed2bce71c0983b8bedfa3aefbf73cfbd7
gpio: omap: prevent module from being unloaded while in use

OMAP GPIO driver allowed to be built as loadable module, but it
doesn't set owner field in GPIO chip structure. As result,
module_get/put() API is not working and it's possible to unload
OMAP driver while in use:

  omap_gpio 48051000.gpio: REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED

Hence, add missing configuration.

Cc: Tony Lindgren <tony@atomide.com>
Fixes: 4e846c8a8921 ('gpio: omap: Allow building as a loadable module')
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c