diff options
| author | Magnus Damm <[email protected]> | 2013-11-20 00:23:26 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2013-11-25 08:03:39 +0000 |
| commit | 969bf7aec86ccd6ce1934ed634e29517ae2b8e10 (patch) | |
| tree | 59753cab30b890e9810eae78113691d4ab75df07 /drivers/gpio/gpio-em.c | |
| parent | gpio: rcar: Enable mask on suspend (diff) | |
| download | kernel-969bf7aec86ccd6ce1934ed634e29517ae2b8e10.tar.gz kernel-969bf7aec86ccd6ce1934ed634e29517ae2b8e10.zip | |
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 <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-em.c')
| -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) gpio_chip->request = em_gio_request; gpio_chip->free = em_gio_free; gpio_chip->label = name; + gpio_chip->dev = &pdev->dev; gpio_chip->owner = THIS_MODULE; gpio_chip->base = pdata->gpio_base; gpio_chip->ngpio = pdata->number_of_pins; |
