From: Wei Yongjun <[email protected]> Add missing .owner of struct gpio_chip. This prevents the module from being removed from underneath its users.
Signed-off-by: Wei Yongjun <[email protected]> --- v1 -> v2: rebased and include Jonas. --- drivers/gpio/gpio-moxart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c index 4ecd195..79b9341 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) -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
