gpio: moxart: add missing .owner to struct gpio_chip
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 16 Dec 2013 02:11:34 +0000 (10:11 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Dec 2013 09:21:23 +0000 (10:21 +0100)
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-moxart.c

index 4ecd195..79b9341 100644 (file)
@@ -102,6 +102,7 @@ static struct gpio_chip moxart_template_chip = {
        .set                    = moxart_gpio_set,
        .get                    = moxart_gpio_get,
        .ngpio                  = 32,
+       .owner                  = THIS_MODULE,
 };
 
 static int moxart_gpio_probe(struct platform_device *pdev)