ptp_ocp: do not call pci_set_drvdata(pdev, NULL)
Cleaning up driver data is actually already handled by driver core, so there is no need to do it manually. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Vadim Fedorenko <vfedorenko@novek.ru> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3a544ebf9f
commit
0fb0bf7a8c
|
@ -3772,7 +3772,6 @@ ptp_ocp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
|
||||
out:
|
||||
ptp_ocp_detach(bp);
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
out_disable:
|
||||
pci_disable_device(pdev);
|
||||
out_free:
|
||||
|
@ -3788,7 +3787,6 @@ ptp_ocp_remove(struct pci_dev *pdev)
|
|||
|
||||
devlink_unregister(devlink);
|
||||
ptp_ocp_detach(bp);
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
pci_disable_device(pdev);
|
||||
|
||||
devlink_free(devlink);
|
||||
|
|
Loading…
Reference in New Issue