diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c index 5084699baeab..77a6d68f7189 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | |||
@@ -158,7 +158,7 @@ static const struct pci_device_id stmmac_id_table[] = { | |||
158 | 158 | ||
159 | MODULE_DEVICE_TABLE(pci, stmmac_id_table); | 159 | MODULE_DEVICE_TABLE(pci, stmmac_id_table); |
160 | 160 | ||
161 | struct pci_driver stmmac_pci_driver = { | 161 | static struct pci_driver stmmac_pci_driver = { |
162 | .name = STMMAC_RESOURCE_NAME, | 162 | .name = STMMAC_RESOURCE_NAME, |
163 | .id_table = stmmac_id_table, | 163 | .id_table = stmmac_id_table, |
164 | .probe = stmmac_pci_probe, | 164 | .probe = stmmac_pci_probe, |
@@ -168,6 +168,8 @@ struct pci_driver stmmac_pci_driver = { | |||
168 | }, | 168 | }, |
169 | }; | 169 | }; |
170 | 170 | ||
171 | module_pci_driver(stmmac_pci_driver); | ||
172 | |||
171 | MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet PCI driver"); | 173 | MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet PCI driver"); |
172 | MODULE_AUTHOR("Rayagond Kokatanur <rayagond.kokatanur@vayavyalabs.com>"); | 174 | MODULE_AUTHOR("Rayagond Kokatanur <rayagond.kokatanur@vayavyalabs.com>"); |
173 | MODULE_AUTHOR("Giuseppe Cavallaro <peppe.cavallaro@st.com>"); | 175 | MODULE_AUTHOR("Giuseppe Cavallaro <peppe.cavallaro@st.com>"); |