Commit 472b854b authored by Paolo Pisati's avatar Paolo Pisati Committed by Bryan Wu

leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading

Enable autoloading of leds-gpio module when a corresponing DT entry is present.
Signed-off-by: default avatarPaolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent aad0f292
......@@ -226,6 +226,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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment