From: Wei Yongjun <[email protected]>

Add missing .owner of struct gpio_chip. This prevents the
module from being removed from underneath its users.

Signed-off-by: Wei Yongjun <[email protected]>
---
 drivers/gpio/gpio-bcm-kona.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c
index b3d0f81..72c927d 100644
--- a/drivers/gpio/gpio-bcm-kona.c
+++ b/drivers/gpio/gpio-bcm-kona.c
@@ -280,6 +280,7 @@ static int bcm_kona_gpio_set_debounce(struct gpio_chip 
*chip, unsigned gpio,
 
 static struct gpio_chip template_chip = {
        .label = "bcm-kona-gpio",
+       .owner = THIS_MODULE,
        .direction_input = bcm_kona_gpio_direction_input,
        .get = bcm_kona_gpio_get,
        .direction_output = bcm_kona_gpio_direction_output,

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to