]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
leds: turris-omnia: Fix module autoloading with MODULE_DEVICE_TABLE()
authorLiao Chen <liaochen4@huawei.com>
Tue, 27 Aug 2024 12:24:31 +0000 (12:24 +0000)
committerLee Jones <lee@kernel.org>
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 <liaochen4@huawei.com>
Link: https://lore.kernel.org/r/20240827122431.430818-1-liaochen4@huawei.com
Signed-off-by: Lee Jones <lee@kernel.org>
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" },