Skip to contentSkip to conversation

gpio: clps711x: Add missing .owner to struct gpio_chip

PATCH In review Axel Lin 2 participants 2 messages Feb 4, 2014 – Feb 5, 2014 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

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.

---
 drivers/gpio/gpio-clps711x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-clps711x.c +1 -0
index 3c2ba2ad..e1e8612 100644
@@ -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
#1 lore raw
Quoted 4 lines · Axel Lin

Add missing .owner of struct gpio_chip. This prevents the module from being removed from underneath its users.

Patch applied.

Yours,
Linus Walleij