diff options
author | Sunil Goutham <sgoutham@cavium.com> | 2015-07-29 16:49:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-30 09:52:32 +0300 |
commit | 4adf4351145e65dd98407299496ef00d82430b48 (patch) | |
tree | 852d045bd0058690598d485576872937e85a4699 /drivers | |
parent | b49087dd0fa27d61b55f7c77d0b857e3b5055161 (diff) | |
download | linux-4adf4351145e65dd98407299496ef00d82430b48.tar.xz |
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>
Diffstat (limited to 'drivers')
-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) pci_disable_device(pdev); } +static void nicvf_shutdown(struct pci_dev *pdev) +{ + nicvf_remove(pdev); +} + static struct pci_driver nicvf_driver = { .name = DRV_NAME, .id_table = nicvf_id_table, .probe = nicvf_probe, .remove = nicvf_remove, + .shutdown = nicvf_shutdown, }; static int __init nicvf_init_module(void) |