mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-28 02:53:16 -04:00
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.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Acked-by: Pavel Pisa <pisa@fel.cvut.cz>
Link: https://patch.msgid.link/20260704151957.48194-1-pengpeng@iscas.ac.cn
Fixes: 792a5b678e ("can: ctucanfd: CTU CAN FD open-source IP core - PCI bus support.")
Cc: stable@kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
c31a435933
commit
d937bdb244
@@ -266,6 +266,7 @@ static const struct pci_device_id ctucan_pci_tbl[] = {
|
||||
CTUCAN_WITH_CTUCAN_ID)},
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, ctucan_pci_tbl);
|
||||
|
||||
static struct pci_driver ctucan_pci_driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
|
||||
Reference in New Issue
Block a user