From: Axel Lin Date: Tue, 4 Feb 2014 14:25:27 +0000 (+0800) Subject: gpio: clps711x: Add missing .owner to struct gpio_chip X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f86b7c70bc03236188c9a865aacd57b8d1ddb08c;p=linux-beck.git gpio: clps711x: 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: Axel Lin Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index d3550274b8f7..20a7839e31ef 100644 --- a/drivers/gpio/gpio-clps711x.c +++ b/drivers/gpio/gpio-clps711x.c @@ -65,6 +65,7 @@ static int clps711x_gpio_probe(struct platform_device *pdev) } bgc->gc.base = id * 8; + bgc->gc.owner = THIS_MODULE; platform_set_drvdata(pdev, bgc); return gpiochip_add(&bgc->gc);