Skip to content

Commit 4adf435

Browse files
Sunil Gouthamdavem330
authored andcommitted
net: thunderx: Add PCI driver shutdown routine
Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: Aleksey Makarov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b49087d commit 4adf435

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/cavium/thunder/nicvf_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,11 +1335,17 @@ static void nicvf_remove(struct pci_dev *pdev)
13351335
pci_disable_device(pdev);
13361336
}
13371337

1338+
static void nicvf_shutdown(struct pci_dev *pdev)
1339+
{
1340+
nicvf_remove(pdev);
1341+
}
1342+
13381343
static struct pci_driver nicvf_driver = {
13391344
.name = DRV_NAME,
13401345
.id_table = nicvf_id_table,
13411346
.probe = nicvf_probe,
13421347
.remove = nicvf_remove,
1348+
.shutdown = nicvf_shutdown,
13431349
};
13441350

13451351
static int __init nicvf_init_module(void)

0 commit comments

Comments
 (0)