Re: [PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading

From: Bryan Wu
Date: Thu Mar 06 2014 - 15:03:53 EST


On Thu, Mar 6, 2014 at 9:18 AM, Paolo Pisati <paolo.pisati@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>
> ---
> 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
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/