The driver has a match table for the pci 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.
Unified · Split
| @@ -266,6 +266,7 @@ static const struct pci_device_id ctucan_pci_tbl[] = { · 265 unmodified lines | ||
| 266 | 266 | CTUCAN_WITH_CTUCAN_ID)}, |
| 267 | 267 | {}, |
| 268 | 268 | }; |
| 269 | +MODULE_DEVICE_TABLE(pci, ctucan_pci_tbl); | |
| 269 | 270 | |
| 270 | 271 | static struct pci_driver ctucan_pci_driver = { |
| 271 | 272 | .name = KBUILD_MODNAME, |