aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Goutham <sgoutham@cavium.com>2015-07-29 09:49:45 -0400
committerDavid S. Miller <davem@davemloft.net>2015-07-30 02:52:32 -0400
commit4adf4351145e65dd98407299496ef00d82430b48 (patch)
tree852d045bd0058690598d485576872937e85a4699
parentb49087dd0fa27d61b55f7c77d0b857e3b5055161 (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.c6
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
1338static void nicvf_shutdown(struct pci_dev *pdev)
1339{
1340 nicvf_remove(pdev);
1341}
1342
1338static struct pci_driver nicvf_driver = { 1343static 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
1345static int __init nicvf_init_module(void) 1351static int __init nicvf_init_module(void)