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>
This commit is contained in:
parent
b49087dd0f
commit
4adf435114
1 changed files with 6 additions and 0 deletions
|
@ -1335,11 +1335,17 @@ static void nicvf_remove(struct pci_dev *pdev)
|
||||||
pci_disable_device(pdev);
|
pci_disable_device(pdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void nicvf_shutdown(struct pci_dev *pdev)
|
||||||
|
{
|
||||||
|
nicvf_remove(pdev);
|
||||||
|
}
|
||||||
|
|
||||||
static struct pci_driver nicvf_driver = {
|
static struct pci_driver nicvf_driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.id_table = nicvf_id_table,
|
.id_table = nicvf_id_table,
|
||||||
.probe = nicvf_probe,
|
.probe = nicvf_probe,
|
||||||
.remove = nicvf_remove,
|
.remove = nicvf_remove,
|
||||||
|
.shutdown = nicvf_shutdown,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init nicvf_init_module(void)
|
static int __init nicvf_init_module(void)
|
||||||
|
|
Loading…
Add table
Reference in a new issue