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

Pengpeng Hou posted 1 patch 1 month, 2 weeks ago
drivers/most/most_usb.c | 1 +
1 file changed, 1 insertion(+)
[PATCH v2] most: most_usb: add the missing USB module device table
Posted by Pengpeng Hou 1 month, 2 weeks ago
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 <pengpeng@iscas.ac.cn>
---
Changes since v1: https://lore.kernel.org/all/20260704151852.45201-1-pengpeng@iscas.ac.cn/
- 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)