From: Wei Yongjun Date: Mon, 16 Dec 2013 02:11:34 +0000 (+0800) Subject: gpio: moxart: add missing .owner to struct gpio_chip X-Git-Tag: v3.14-rc1~145^2~30 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=50d7c9c841176887e138422045f53c7ce607a3da;p=linux.git gpio: moxart: add missing .owner to struct gpio_chip Add missing .owner of struct gpio_chip. This prevents the module from being removed from underneath its users. Signed-off-by: Wei Yongjun Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c index 4ecd195e4a5b..79b93415c620 100644 --- a/drivers/gpio/gpio-moxart.c +++ b/drivers/gpio/gpio-moxart.c @@ -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)