public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: arizona-i2c: add the missing device table IDs for of
@ 2023-03-19 12:41 André Apitzsch
  2023-03-20  9:35 ` Charles Keepax
  2023-03-30 11:11 ` Lee Jones
  0 siblings, 2 replies; 3+ messages in thread
From: André Apitzsch @ 2023-03-19 12:41 UTC (permalink / raw)
  To: Lee Jones, patches, linux-kernel
  Cc: ~postmarketos/upstreaming, 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.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
---
 drivers/mfd/arizona-i2c.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/arizona-i2c.c b/drivers/mfd/arizona-i2c.c
index b2301586adbc..43e393c8608d 100644
--- a/drivers/mfd/arizona-i2c.c
+++ b/drivers/mfd/arizona-i2c.c
@@ -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 = {
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-30 11:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-19 12:41 [PATCH] mfd: arizona-i2c: add the missing device table IDs for of André Apitzsch
2023-03-20  9:35 ` Charles Keepax
2023-03-30 11:11 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox