gpio: clps711x: Add missing .owner to struct gpio_chip
PATCH 1/1 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 <[email protected]>
--- drivers/gpio/gpio-clps711x.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-clps711x.c +1 -0
@@ -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);
Signature · 1 line
1.8.1.2
Quoted 4 lines · Axel Lin
Add missing .owner of struct
gpio_chip. This prevents the module from being removed from underneath its users.Signed-off-by Axel Lin <[email protected]>
Patch applied.
Yours,
Linus Walleij