diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-16 10:11:34 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-20 10:21:23 +0100 |
commit | 50d7c9c841176887e138422045f53c7ce607a3da (patch) | |
tree | f3b9b820eac8b35cb64ef57ec887c1c6133da166 /drivers/gpio/gpio-moxart.c | |
parent | 12262bef8f4614df7af8b2963de5beddee18ae5e (diff) | |
download | talos-obmc-linux-50d7c9c841176887e138422045f53c7ce607a3da.tar.gz talos-obmc-linux-50d7c9c841176887e138422045f53c7ce607a3da.zip |
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/gpio-moxart.c')
-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 = { .set = moxart_gpio_set, .get = moxart_gpio_get, .ngpio = 32, + .owner = THIS_MODULE, }; static int moxart_gpio_probe(struct platform_device *pdev) |