Skip to content

Commit 64c3886

Browse files
Liao Chenlag-linaro
authored andcommitted
leds: turris-omnia: Fix module autoloading with MODULE_DEVICE_TABLE()
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 2aad93b commit 64c3886

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/leds/leds-turris-omnia.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ static const struct of_device_id of_omnia_leds_match[] = {
530530
{ .compatible = "cznic,turris-omnia-leds", },
531531
{},
532532
};
533+
MODULE_DEVICE_TABLE(of, of_omnia_leds_match);
533534

534535
static const struct i2c_device_id omnia_id[] = {
535536
{ "omnia" },

0 commit comments

Comments
 (0)