[PATCH] watchdog: sc1200wdt: add missing MODULE_DEVICE_TABLE()

From: Qiwen Gong

Date: Thu Oct 15 2026 - 02:42:16 EST


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@xxxxxxxxxxxxxxxx>
---
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