提交 50d7c9c8 编写于 作者: W Wei Yongjun 提交者: Linus Walleij

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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 12262bef
...@@ -102,6 +102,7 @@ static struct gpio_chip moxart_template_chip = { ...@@ -102,6 +102,7 @@ static struct gpio_chip moxart_template_chip = {
.set = moxart_gpio_set, .set = moxart_gpio_set,
.get = moxart_gpio_get, .get = moxart_gpio_get,
.ngpio = 32, .ngpio = 32,
.owner = THIS_MODULE,
}; };
static int moxart_gpio_probe(struct platform_device *pdev) static int moxart_gpio_probe(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册