gpio: xlp: Add missing .owner and .label settings for gpio_chip
authorAxel Lin <axel.lin@ingics.com>
Thu, 7 May 2015 07:34:37 +0000 (15:34 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 11:23:24 +0000 (13:23 +0200)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xlp.c

index 8532697768f6a731db6e2ea53faf42cbb4aa70e7..9bdab7203d6515b84717170bbf3edb1c8d9b70f9 100644 (file)
@@ -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;