gpio: xlp: Add missing .owner and .label settings for gpio_chip
[firefly-linux-kernel-4.4.55.git] / 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;