diff options
author | Sunil Goutham <sgoutham@cavium.com> | 2015-07-29 09:49:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-30 02:52:32 -0400 |
commit | 4adf4351145e65dd98407299496ef00d82430b48 (patch) | |
tree | 852d045bd0058690598d485576872937e85a4699 | |
parent | b49087dd0fa27d61b55f7c77d0b857e3b5055161 (diff) |
net: thunderx: Add PCI driver shutdown routine
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nicvf_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index c7a29a3fce89..3b90afb8c293 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c | |||
@@ -1335,11 +1335,17 @@ static void nicvf_remove(struct pci_dev *pdev) | |||
1335 | pci_disable_device(pdev); | 1335 | pci_disable_device(pdev); |
1336 | } | 1336 | } |
1337 | 1337 | ||
1338 | static void nicvf_shutdown(struct pci_dev *pdev) | ||
1339 | { | ||
1340 | nicvf_remove(pdev); | ||
1341 | } | ||
1342 | |||
1338 | static struct pci_driver nicvf_driver = { | 1343 | static struct pci_driver nicvf_driver = { |
1339 | .name = DRV_NAME, | 1344 | .name = DRV_NAME, |
1340 | .id_table = nicvf_id_table, | 1345 | .id_table = nicvf_id_table, |
1341 | .probe = nicvf_probe, | 1346 | .probe = nicvf_probe, |
1342 | .remove = nicvf_remove, | 1347 | .remove = nicvf_remove, |
1348 | .shutdown = nicvf_shutdown, | ||
1343 | }; | 1349 | }; |
1344 | 1350 | ||
1345 | static int __init nicvf_init_module(void) | 1351 | static int __init nicvf_init_module(void) |