Skip to content

Commit ea12fe9

Browse files
Gateworksdavem330
authored andcommitted
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>
1 parent 60833d5 commit ea12fe9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/microchip/lan743x_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3091,6 +3091,8 @@ static const struct pci_device_id lan743x_pcidev_tbl[] = {
30913091
{ 0, }
30923092
};
30933093

3094+
MODULE_DEVICE_TABLE(pci, lan743x_pcidev_tbl);
3095+
30943096
static struct pci_driver lan743x_pcidev_driver = {
30953097
.name = DRIVER_NAME,
30963098
.id_table = lan743x_pcidev_tbl,

0 commit comments

Comments
 (0)