mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] watchdog: sc1200wdt: add missing MODULE_DEVICE_TABLE()
@ 2026-10-15  6:25 Qiwen Gong
  2026-10-20  1:27 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Qiwen Gong @ 2026-10-15  6:25 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, linux-watchdog, Zwane Mwaikambo
  Cc: linux-kernel, Qiwen Gong

Add MODULE_DEVICE_TABLE(pnp, scl200wdt_pnp_devices) beside the
existing table.  

Built with CONFIG_COMPILE_TEST=y and CONFIG_PNP=y.  modinfo of
sc1200wdt.ko shows pnp:dNSC0800* and acpi*:NSC0800:* only after this
change. 

Found by comparing the id_table with module-alias publication.

Signed-off-by: Qiwen Gong <qiwen.neosys@isrc.iscas.ac.cn>
---
 drivers/watchdog/sc1200wdt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/watchdog/sc1200wdt.c b/drivers/watchdog/sc1200wdt.c
index 1d3300c98d43..0dddd18d11aa 100644
--- a/drivers/watchdog/sc1200wdt.c
+++ b/drivers/watchdog/sc1200wdt.c
@@ -342,6 +342,7 @@ static const struct pnp_device_id scl200wdt_pnp_devices[] = {
 	{ .id = "NSC0800" },
 	{ }
 };
+MODULE_DEVICE_TABLE(pnp, scl200wdt_pnp_devices);
 
 static int scl200wdt_pnp_probe(struct pnp_dev *dev,
 					const struct pnp_device_id *dev_id)

base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
-- 
2.33.0


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

* Re: [PATCH] watchdog: sc1200wdt: add missing MODULE_DEVICE_TABLE()
  2026-10-15  6:25 [PATCH] watchdog: sc1200wdt: add missing MODULE_DEVICE_TABLE() Qiwen Gong
@ 2026-10-20  1:27 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2026-10-20  1:27 UTC (permalink / raw)
  To: Qiwen Gong
  Cc: Wim Van Sebroeck, linux-watchdog, Zwane Mwaikambo, linux-kernel

On Thu, Oct 15, 2026 at 06:25:56AM +0000, Qiwen Gong wrote:
> Add MODULE_DEVICE_TABLE(pnp, scl200wdt_pnp_devices) beside the
> existing table.  
> 
> Built with CONFIG_COMPILE_TEST=y and CONFIG_PNP=y.  modinfo of
> sc1200wdt.ko shows pnp:dNSC0800* and acpi*:NSC0800:* only after this
> change. 
> 
> Found by comparing the id_table with module-alias publication.
> 
> Signed-off-by: Qiwen Gong <qiwen.neosys@isrc.iscas.ac.cn>

Applied.

Thanks,
Guenter

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

end of thread, other threads:[~2026-10-20  1:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15  6:25 [PATCH] watchdog: sc1200wdt: add missing MODULE_DEVICE_TABLE() Qiwen Gong
2026-10-20  1:27 ` Guenter Roeck

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

all inboxes | Powered by JetHome®