diff options
author | Magnus Damm <damm@opensource.se> | 2013-11-19 19:23:26 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-11-25 03:03:39 -0500 |
commit | 969bf7aec86ccd6ce1934ed634e29517ae2b8e10 (patch) | |
tree | 59753cab30b890e9810eae78113691d4ab75df07 | |
parent | 403961120667bed7161777d33483596edd0b05f2 (diff) |
gpio: em: Setup gpiochip->dev
Make sure gpio_chip->dev is setup so of_gpiochip_add()
will work as expected.
Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-em.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c index ec190361bf2e..b1decec9b359 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c | |||
@@ -328,6 +328,7 @@ static int em_gio_probe(struct platform_device *pdev) | |||
328 | gpio_chip->request = em_gio_request; | 328 | gpio_chip->request = em_gio_request; |
329 | gpio_chip->free = em_gio_free; | 329 | gpio_chip->free = em_gio_free; |
330 | gpio_chip->label = name; | 330 | gpio_chip->label = name; |
331 | gpio_chip->dev = &pdev->dev; | ||
331 | gpio_chip->owner = THIS_MODULE; | 332 | gpio_chip->owner = THIS_MODULE; |
332 | gpio_chip->base = pdata->gpio_base; | 333 | gpio_chip->base = pdata->gpio_base; |
333 | gpio_chip->ngpio = pdata->number_of_pins; | 334 | gpio_chip->ngpio = pdata->number_of_pins; |