diff options
author | Ian Molton <ian.molton@codethink.co.uk> | 2013-09-02 15:44:55 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-09-19 13:33:45 (GMT) |
commit | b59278548e2383976f7db5fd3389f9116a6f240d (patch) | |
tree | 2e1bf6cfbf85210222790f6229b0d295aca7d1d8 /drivers/gpio/gpio-em.c | |
parent | ca6af7b96ab621371f5f408e3fe7bd1e5cb063aa (diff) | |
download | linux-b59278548e2383976f7db5fd3389f9116a6f240d.tar.xz |
emev2: GPIOLIB: Enable support for OF
EMEV2 is now a DT platform, however the GPIO driver cannot be used
from a DT file since it does not fill out the of_node field in its
gpio_chip structure.
Signed-off-by: Ian Molton <ian.molton@codethink.co.uk>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
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 c6e1f08..160d759 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c @@ -319,6 +319,7 @@ static int em_gio_probe(struct platform_device *pdev) } gpio_chip = &p->gpio_chip; + gpio_chip->of_node = pdev->dev.of_node; gpio_chip->direction_input = em_gio_direction_input; gpio_chip->get = em_gio_get; gpio_chip->direction_output = em_gio_direction_output; |