Skip to contentSkip to conversation

gpio: xlp: Add missing .owner and .label settings for gpio_chip

PATCH In review Axel Lin 2 participants 2 messages May 7, 2015 – May 12, 2015 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: xlp: Add missing .owner and .label settings for gpio_chip

---
 drivers/gpio/gpio-xlp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpio/gpio-xlp.c +2 -0
index 8532697..9bdab72 100644
@@ -366,6 +366,8 @@ static int xlp_gpio_probe(struct platform_device *pdev)
 
 	gc = &priv->chip;
 
+	gc->owner = THIS_MODULE;
+	gc->label = dev_name(&pdev->dev);
 	gc->base = 0;
 	gc->dev = &pdev->dev;
 	gc->ngpio = ngpio;
Signature · 1 line
2.1.0