lan743x: add MODULE_DEVICE_TABLE for module loading alias
Subsystems (3)
PATCH 1/1 lan743x: add MODULE_DEVICE_TABLE for module loading alias
Without a MODULE_DEVICE_TABLE the attributes are missing that create an alias for auto-loading the module in userspace via hotplug.
Signed-off-by Tim Harvey <[email protected]>
--- drivers/net/ethernet/microchip/lan743x_main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/microchip/lan743x_main.c +2 -0
@@ -3091,6 +3091,8 @@ static const struct pci_device_id lan743x_pcidev_tbl[] = { { 0, } }; +MODULE_DEVICE_TABLE (pci, lan743x_pcidev_tbl); +static struct pci_driver lan743x_pcidev_driver = { .name =DRIVER_NAME , .id_table = lan743x_pcidev_tbl,
Signature · 1 line
2.7.4
From: Tim Harvey <[email protected]>
Date: Tue, 16 Jun 2020 08:31:58 -0700
Quoted 4 lines
Without a
MODULE_DEVICE_TABLEthe attributes are missing that create an alias for auto-loading the module in userspace via hotplug.Signed-off-by Tim Harvey <[email protected]>
Applied, thank you.