From: Ian Molton <ian.molton@codethink.co.uk>
To: linus.walleij@linaro.org
Cc: horms@verge.net.au, linux-gpio@vger.kernel.org,
Ian Molton <ian.molton@codethink.co.uk>
Subject: [PATCH] emev2: GPIOLIB: Enable support for OF
Date: Mon, 2 Sep 2013 16:44:55 +0100 [thread overview]
Message-ID: <1378136695-23203-2-git-send-email-ian.molton@codethink.co.uk> (raw)
In-Reply-To: <1378136695-23203-1-git-send-email-ian.molton@codethink.co.uk>
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>
---
drivers/gpio/Kconfig | 2 +-
drivers/gpio/gpio-em.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index b2450ba..58e043d 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -129,7 +129,7 @@ config GPIO_IT8761E
config GPIO_EM
tristate "Emma Mobile GPIO"
- depends on ARM
+ depends on ARM && OF_GPIO
help
Say yes here to support GPIO on Renesas Emma Mobile SoCs.
diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c
index 5cba855..279821e 100644
--- a/drivers/gpio/gpio-em.c
+++ b/drivers/gpio/gpio-em.c
@@ -303,6 +303,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;
--
1.7.10.4
next prev parent reply other threads:[~2013-09-02 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1377623069-32678-1-git-send-email-ian.molton@codethink.co.uk>
[not found] ` <1377623069-32678-2-git-send-email-ian.molton@codethink.co.uk>
2013-08-29 17:41 ` [PATCH] emev2: GPIOLIB: Enable support for OF Linus Walleij
2013-08-30 3:47 ` Simon Horman
2013-08-30 7:48 ` Linus Walleij
2013-09-02 15:44 ` (unknown), Ian Molton
2013-09-02 15:44 ` Ian Molton [this message]
2013-09-04 5:07 ` [PATCH] emev2: GPIOLIB: Enable support for OF Simon Horman
2013-09-19 13:34 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378136695-23203-2-git-send-email-ian.molton@codethink.co.uk \
--to=ian.molton@codethink.co.uk \
--cc=horms@verge.net.au \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).