Skip to contentSkip to conversation

leds: turris-omnia: fix module autoloading

PATCH Applied Liao Chen 2 participants 2 messages Aug 27, 2024 – Aug 30, 2024

Subsystems (2)
lore
Share & tools
lore

Liao Chen

author
#0 lore raw

PATCH 1/1 leds: turris-omnia: fix module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

---
 drivers/leds/leds-turris-omnia.c | 1 +
 1 file changed, 1 insertion(+)
drivers/leds/leds-turris-omnia.c +1 -0
index 39f740be058f..dd547f5fc800 100644
@@ -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" },
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw

Re: (subset) [PATCH -next] leds: turris-omnia: fix module autoloading

Quoted 4 lines · Liao Chen

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

Applied, thanks!

[1/1] leds: turris-omnia: fix module autoloading

      commit: 64c38866500b0bda4363fb994d545557dffb017c

--
Lee Jones [李琼斯]