]> Pileus Git - ~andy/linux/commitdiff
gpio: bcm-kona: add missing .owner to struct gpio_chip
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 29 Oct 2013 03:49:20 +0000 (11:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Oct 2013 18:23:00 +0000 (11:23 -0700)
Add missing .owner of struct gpio_chip. This prevents the
module from being removed from underneath its users.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-bcm-kona.c

index b3d0f8163277e271846b2a583ea7efcf377b2a7f..72c927dc3be1b104c53e04bec683aa37c9c92343 100644 (file)
@@ -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,