summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-06-08 15:03:57 +0300
committerJakub Kicinski <kuba@kernel.org>2022-06-10 08:36:08 -0700
commit0fb0bf7a8c751b39b63456b04a74dee3ecfd2204 (patch)
treebfce23da43d126f3805cce348bc5f976566bdf35 /drivers/ptp
parent3a544ebf9f99b612442064c792f34de5bad3cb31 (diff)
downloadlinux-stable-0fb0bf7a8c751b39b63456b04a74dee3ecfd2204.tar.gz
linux-stable-0fb0bf7a8c751b39b63456b04a74dee3ecfd2204.tar.bz2
linux-stable-0fb0bf7a8c751b39b63456b04a74dee3ecfd2204.zip
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>
Diffstat (limited to 'drivers/ptp')
-rw-r--r--drivers/ptp/ptp_ocp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index 62c628ded9ee..d92d7e42667c 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -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);