Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH] hwmon: ltc4283: add missing MODULE_DEVICE_TABLE for OF match table
@ 2026-07-21  5:50 kr494167
  2026-07-21  5:57 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: kr494167 @ 2026-07-21  5:50 UTC (permalink / raw)
  To: linux, nuno.sa; +Cc: linux-hwmon, linux-gpio, linux-kernel, surendra

From: surendra <kr494167@gmail.com>

The driver registers ltc4283_of_match as the platform driver's
.of_match_table so the kernel probes the device when a DT node with
compatible "adi,ltc4283" is present, but the corresponding
MODULE_DEVICE_TABLE(of, ...) call is absent.

Without it the module alias table (modules.alias) does not contain an
"of:N*T*Cadi,ltc4283" entry, so udev / kmod cannot auto-load the
module when the DT node appears, breaking modules-based deployments
while built-in configurations happen to work by accident.

Add the missing MODULE_DEVICE_TABLE() to fix module auto-loading.

Fixes: dd63353a0b5e ("hwmon: ltc4283: Add support for the LTC4283 Swap Controller")
Signed-off-by: surendra <kr494167@gmail.com>
---
 drivers/hwmon/ltc4283.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/ltc4283.c b/drivers/hwmon/ltc4283.c
index 9b85293ea664..9ec409bc2648 100644
--- a/drivers/hwmon/ltc4283.c
+++ b/drivers/hwmon/ltc4283.c
@@ -1772,6 +1772,7 @@ static const struct of_device_id ltc4283_of_match[] = {
 	{ .compatible = "adi,ltc4283" },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, ltc4283_of_match);
 
 static const struct i2c_device_id ltc4283_i2c_id[] = {
 	{ "ltc4283" },
-- 
2.55.0


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

* Re: [PATCH] hwmon: ltc4283: add missing MODULE_DEVICE_TABLE for OF match table
  2026-07-21  5:50 [PATCH] hwmon: ltc4283: add missing MODULE_DEVICE_TABLE for OF match table kr494167
@ 2026-07-21  5:57 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-07-21  5:57 UTC (permalink / raw)
  To: kr494167; +Cc: linux-hwmon

> From: surendra <kr494167@gmail.com>
> 
> The driver registers ltc4283_of_match as the platform driver's
> .of_match_table so the kernel probes the device when a DT node with
> compatible "adi,ltc4283" is present, but the corresponding
> MODULE_DEVICE_TABLE(of, ...) call is absent.
> 
> Without it the module alias table (modules.alias) does not contain an
> "of:N*T*Cadi,ltc4283" entry, so udev / kmod cannot auto-load the
> module when the DT node appears, breaking modules-based deployments
> while built-in configurations happen to work by accident.
> 
> Add the missing MODULE_DEVICE_TABLE() to fix module auto-loading.
> 
> Fixes: dd63353a0b5e ("hwmon: ltc4283: Add support for the LTC4283 Swap Controller")
> Signed-off-by: surendra <kr494167@gmail.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260721055022.34629-1-kr494167@gmail.com?part=1


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

end of thread, other threads:[~2026-07-21  5:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21  5:50 [PATCH] hwmon: ltc4283: add missing MODULE_DEVICE_TABLE for OF match table kr494167
2026-07-21  5:57 ` sashiko-bot

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