Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4adf4351 authored by Sunil Goutham's avatar Sunil Goutham Committed by David S. Miller
Browse files

net: thunderx: Add PCI driver shutdown routine

parent b49087dd
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -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)