History

can: ctucanfd: add missing MODULE_DEVICE_TABLE()

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.

Pengpeng Hou committed 4 months ago

Commit d937bdb1 parent c31a4351 file · +1 −0Browse files

Unified · Split

drivers/net/can/ctucanfd/ctucanfd_pci.c+1−0
@@ -266,6 +266,7 @@ static const struct pci_device_id ctucan_pci_tbl[] = { · 265 unmodified lines
266266 CTUCAN_WITH_CTUCAN_ID)},
267267 {},
268268 };
269+MODULE_DEVICE_TABLE(pci, ctucan_pci_tbl);
269270
270271 static struct pci_driver ctucan_pci_driver = {
271272 .name = KBUILD_MODNAME,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t