mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: Paolo Pisati <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
aad0f29275
commit
472b854bbc
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue