Skip to contentSkip to conversation

mfd: arizona-i2c: add the missing device table IDs for of

PATCH Applied André Apitzsch 3 participants 3 messages Mar 19, 2023 – Mar 30, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: arizona-i2c: add the missing device table IDs for of

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as a module.

---
 drivers/mfd/arizona-i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/arizona-i2c.c +1 -0
index b2301586adbc..43e393c8608d 100644
@@ -112,6 +112,7 @@ static const struct of_device_id arizona_i2c_of_match[] = {
 	{ .compatible = "wlf,wm1814", .data = (void *)WM1814 },
 	{},
 };
+MODULE_DEVICE_TABLE(of, arizona_i2c_of_match);
 #endif
 
 static struct i2c_driver arizona_i2c_driver = {
Signature · 1 line
2.40.0
maintainer Applied
#2 lore raw
In reply to André Apitzsch
Quoted 3 lines · André Apitzsch

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as a module.

Next time please wrap at a more suitable point (~80-chars).

I've fixed this for you this time.

Quoted 4 lines
---
 drivers/mfd/arizona-i2c.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

--
Lee Jones [李琼斯]