* [PATCH -next] leds: turris-omnia: fix module autoloading
@ 2024-08-27 12:24 Liao Chen
2024-08-30 8:05 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Liao Chen @ 2024-08-27 12:24 UTC (permalink / raw)
To: linux-leds, linux-kernel; +Cc: kabel, pavel, lee
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>
---
drivers/leds/leds-turris-omnia.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c
index 39f740be058f..dd547f5fc800 100644
--- a/drivers/leds/leds-turris-omnia.c
+++ b/drivers/leds/leds-turris-omnia.c
@@ -532,6 +532,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" },
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-30 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-27 12:24 [PATCH -next] leds: turris-omnia: fix module autoloading Liao Chen
2024-08-30 8:05 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®