From: Simon Horman <horms@verge.net.au>
To: Ian Molton <ian.molton@codethink.co.uk>
Cc: linus.walleij@linaro.org, linux-gpio@vger.kernel.org,
Magnus Damm <magnus.damm@gmail.com>
Subject: Re: [PATCH] emev2: GPIOLIB: Enable support for OF
Date: Wed, 4 Sep 2013 14:07:27 +0900 [thread overview]
Message-ID: <20130904050727.GA15635@verge.net.au> (raw)
In-Reply-To: <1378136695-23203-2-git-send-email-ian.molton@codethink.co.uk>
[ CC Magnus ]
On Mon, Sep 02, 2013 at 04:44:55PM +0100, Ian Molton wrote:
> 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>
I have no objections to this.
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
> ---
> 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-04 5:07 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 ` [PATCH] emev2: GPIOLIB: Enable support for OF Ian Molton
2013-09-04 5:07 ` Simon Horman [this message]
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=20130904050727.GA15635@verge.net.au \
--to=horms@verge.net.au \
--cc=ian.molton@codethink.co.uk \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=magnus.damm@gmail.com \
/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).