The driver has a match table for the usb bus wired into its driver
structure, but the table is not exported with MODULE_DEVICE_TABLE().
Add the missing MODULE_DEVICE_TABLE() entry so module alias information
is generated for automatic module loading.
This is a source-level fix. It does not claim dynamic hardware
reproduction; the evidence is the driver-owned match table, its use by
the driver registration structure, and the missing module alias
publication.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
---
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 d2c0875727a3..f13ac6ad43fb 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.53.0