[PATCH v2] most: most_usb: add the missing USB module device table

Pengpeng Hou <[email protected]>
Newsgroups gmane.linux.kernel
Message-ID <[email protected]>
The USB device ID table is used by the driver but is not exported
with MODULE_DEVICE_TABLE(). As a result, module alias information is not
generated for automatic loading.

Export the existing table.

Fixes: a4198cdf0c34 ("Staging: most: add MOST driver's hdm-usb module")
Assisted-by: Codex:gpt-5
Signed-off-by: Pengpeng Hou <[email protected]>
---
Changes since v1: https://lore.kernel.org/all/[email protected]/
- rebase on current MOST USB sources
- add the coding-assistant disclosure

The driver-owned ID table and module alias publication were reviewed
statically; no MOST hardware test was performed.

 drivers/most/most_usb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/most/most_usb.c b/drivers/most/most_usb.c
index 6437733afee0..af29a04065c1 100644
--- a/drivers/most/most_usb.c
+++ b/drivers/most/most_usb.c
@@ -780,6 +780,7 @@ static const struct usb_device_id usbid[] = {
 	{ USB_DEVICE(USB_VENDOR_ID_SMSC, USB_DEV_ID_OS81210), },
 	{ } /* Terminating entry */
 };
+MODULE_DEVICE_TABLE(usb, usbid);
 
 struct regs {
 	const char *name;
-- 
2.50.1 (Apple Git-155)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.