Browse Source

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

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Axel Lin 10 years ago
parent
commit
b8a3f52e98
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gpio/gpio-xlp.c

+ 2 - 0
drivers/gpio/gpio-xlp.c

@@ -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;