]> Git Repo - linux.git/commitdiff
leds: turris-omnia: Fix module autoloading with MODULE_DEVICE_TABLE()
authorLiao Chen <[email protected]>
Tue, 27 Aug 2024 12:24:31 +0000 (12:24 +0000)
committerLee Jones <[email protected]>
Fri, 30 Aug 2024 08:05:08 +0000 (09:05 +0100)
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]>
drivers/leds/leds-turris-omnia.c

index 1ef942b5cefadc6525f7855e4e6bb8791f56bc12..4cff8c4b020ca16901bba8663f631c6b948bf8f2 100644 (file)
@@ -530,6 +530,7 @@ static const struct of_device_id of_omnia_leds_match[] = {
        { .compatible = "cznic,turris-omnia-leds", },
        {},
 };
+MODULE_DEVICE_TABLE(of, of_omnia_leds_match);
 
 static const struct i2c_device_id omnia_id[] = {
        { "omnia" },
This page took 0.057101 seconds and 4 git commands to generate.