diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-15 21:11:34 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-20 04:21:23 -0500 |
commit | 50d7c9c841176887e138422045f53c7ce607a3da (patch) | |
tree | f3b9b820eac8b35cb64ef57ec887c1c6133da166 /drivers/gpio | |
parent | 12262bef8f4614df7af8b2963de5beddee18ae5e (diff) |
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-moxart.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 = { | |||
102 | .set = moxart_gpio_set, | 102 | .set = moxart_gpio_set, |
103 | .get = moxart_gpio_get, | 103 | .get = moxart_gpio_get, |
104 | .ngpio = 32, | 104 | .ngpio = 32, |
105 | .owner = THIS_MODULE, | ||
105 | }; | 106 | }; |
106 | 107 | ||
107 | static int moxart_gpio_probe(struct platform_device *pdev) | 108 | static int moxart_gpio_probe(struct platform_device *pdev) |