diff mbox

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

Message ID 1430984077.23118.1.camel@ingics.com
State New
Headers show

Commit Message

Axel Lin May 7, 2015, 7:34 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/gpio/gpio-xlp.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Linus Walleij May 12, 2015, 11:23 a.m. UTC | #1
On Thu, May 7, 2015 at 9:34 AM, Axel Lin <axel.lin@ingics.com> wrote:

> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/gpio/gpio-xlp.c b/drivers/gpio/gpio-xlp.c
index 8532697..9bdab72 100644
--- a/drivers/gpio/gpio-xlp.c
+++ b/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;