From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Wu Subject: Re: [PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading Date: Thu, 6 Mar 2014 12:03:21 -0800 Message-ID: References: <1394126318-19806-1-git-send-email-paolo.pisati@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <1394126318-19806-1-git-send-email-paolo.pisati@canonical.com> Sender: linux-kernel-owner@vger.kernel.org To: Paolo Pisati Cc: Richard Purdie , Linux LED Subsystem , lkml List-Id: linux-leds@vger.kernel.org On Thu, Mar 6, 2014 at 9:18 AM, Paolo Pisati 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 > --- > 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 >