diff options
author | Tim Harvey <tharvey@gateworks.com> | 2020-06-16 08:31:58 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-16 14:01:14 -0700 |
commit | ea12fe9dee97d1f284ee980845444859cfcb307d (patch) | |
tree | 62dbdc963f268938d1c2339db72d8d495f07b0e4 /drivers/net/ethernet/microchip | |
parent | 60833d54d56c21e7538296eb2e00e104768fd047 (diff) |
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 <tharvey@gateworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip')
-rw-r--r-- | drivers/net/ethernet/microchip/lan743x_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index c5c5c688b7e2..f1711ac86d0c 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -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, |