linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bryan Wu <cooloney@gmail.com>
To: Paolo Pisati <paolo.pisati@canonical.com>
Cc: Richard Purdie <rpurdie@rpsys.net>,
	Linux LED Subsystem <linux-leds@vger.kernel.org>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading
Date: Thu, 6 Mar 2014 12:03:21 -0800	[thread overview]
Message-ID: <CAK5ve-K9DVDNsUrFXqLtUnFjMNN2EHr6S1vjzD+E7mQ8S2AOdQ@mail.gmail.com> (raw)
In-Reply-To: <1394126318-19806-1-git-send-email-paolo.pisati@canonical.com>

On Thu, Mar 6, 2014 at 9:18 AM, Paolo Pisati <paolo.pisati@canonical.com> wrote:
> Enable autoloading of leds-gpio module when a corresponing DT entry is present.
>

Looks good. I will merge it.

Thanks,
-Bryan

> Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
> ---
>  drivers/leds/leds-gpio.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
> index 78b0e27..653d501 100644
> --- a/drivers/leds/leds-gpio.c
> +++ b/drivers/leds/leds-gpio.c
> @@ -224,6 +224,8 @@ static const struct of_device_id of_gpio_leds_match[] = {
>         { .compatible = "gpio-leds", },
>         {},
>  };
> +
> +MODULE_DEVICE_TABLE(of, of_gpio_leds_match);
>  #else /* CONFIG_OF_GPIO */
>  static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
>  {
> --
> 1.9.0
>

      reply	other threads:[~2014-03-06 20:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 17:18 [PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading Paolo Pisati
2014-03-06 20:03 ` Bryan Wu [this message]

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=CAK5ve-K9DVDNsUrFXqLtUnFjMNN2EHr6S1vjzD+E7mQ8S2AOdQ@mail.gmail.com \
    --to=cooloney@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=paolo.pisati@canonical.com \
    --cc=rpurdie@rpsys.net \
    /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).