linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading
@ 2014-03-06 17:18 Paolo Pisati
  2014-03-06 20:03 ` Bryan Wu
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Pisati @ 2014-03-06 17:18 UTC (permalink / raw)
  To: Bryan Wu, Richard Purdie, linux-leds, linux-kernel

Enable autoloading of leds-gpio module when a corresponing DT entry is present.

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Bryan Wu @ 2014-03-06 20:03 UTC (permalink / raw)
  To: Paolo Pisati; +Cc: Richard Purdie, Linux LED Subsystem, lkml

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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-06 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).