Skip to contentSkip to conversation

backlight: ktz8866: fix module autoloading

PATCH Applied Liao Chen 4 participants 4 messages Aug 20, 2024 – Sep 30, 2024

Subsystems (3)
lore
Share & tools
lore

Liao Chen

author
#0 lore raw

PATCH 1/1 backlight: ktz8866: fix module autoloading

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

---
 drivers/video/backlight/ktz8866.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/backlight/ktz8866.c +1 -0
index 2e508741c0af..351c2b4d63ed 100644
@@ -190,6 +190,7 @@ static const struct of_device_id ktz8866_match_table[] = {
 	},
 	{},
 };
+MODULE_DEVICE_TABLE(of, ktz8866_match_table);
 
 static struct i2c_driver ktz8866_driver = {
 	.driver = {
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Liao Chen
drivers/video/backlight/ktz8866.c +1 -0
index 2e508741c0af..351c2b4d63ed 100644
@@ -190,6 +190,7 @@ static const struct of_device_id ktz8866_match_table[] = {
 	},
 	{},
 };
+MODULE_DEVICE_TABLE(of, ktz8866_match_table);
 
 static struct i2c_driver ktz8866_driver = {
 	.driver = {
Signature · 1 line
2.34.1
maintainer Applied
#3 lore raw

Re: (subset) [PATCH -next] backlight: ktz8866: fix module autoloading

In reply to Liao Chen
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] backlight: ktz8866: fix module autoloading

      commit: 2d3553b76ecaf23c98f3070a2db8d08906be37b8

--
Lee Jones [李琼斯]