From: Grygorii Strashko Date: Thu, 25 Jun 2015 17:30:50 +0000 (+0300) Subject: gpiolib: irqchip: prevent driver unloading if gpio is used as irq only X-Git-Tag: omap-for-v4.3/fixes-rc1~96^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b76e79c772648991e700f004205e9ac861c77c0;p=pandora-kernel.git gpiolib: irqchip: prevent driver unloading if gpio is used as irq only Now nothing prevents GPIO driver from being unloaded if its gpios were requested as GPIO IRQs only (without calling gpio_request()). Hence, add calls of try_module_get()/module_put() into gpiochip_irq_reqres/relres() to track such scenario properly. Cc: Johan Hovold Signed-off-by: Grygorii Strashko Reviewed-by: Alexandre Courbot Signed-off-by: Linus Walleij --- Reading git-diff-tree failed