aboutsummaryrefslogtreecommitdiff
path: root/drivers/ptp
diff options
context:
space:
mode:
authorGravatar Sagi Maimon <maimon.sagi@gmail.com> 2023-12-20 10:19:14 +0200
committerGravatar David S. Miller <davem@davemloft.net> 2023-12-29 08:37:23 +0000
commit97417cd79ce179a774b245a3f5535cc3fbbaee50 (patch)
tree529b654652043d245a70da0020d8010303e7dab1 /drivers/ptp
parentMerge tag 'nf-23-12-20' of git://git.kernel.org/pub/scm/linux/kernel/git/netf... (diff)
downloadlinux-97417cd79ce179a774b245a3f5535cc3fbbaee50.tar.gz
linux-97417cd79ce179a774b245a3f5535cc3fbbaee50.tar.bz2
linux-97417cd79ce179a774b245a3f5535cc3fbbaee50.zip
ptp: ocp: fix bug in unregistering the DPLL subsystem
When unregistering the DPLL subsystem the priv pointer is different then the one used for registration which cause failure in unregistering. Fixes: 09eeb3aecc6c ("ptp_ocp: implement DPLL ops") Reviewed-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
-rw-r--r--drivers/ptp/ptp_ocp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index 4021d3d325f9..e7defce8cf48 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -4492,7 +4492,7 @@ ptp_ocp_remove(struct pci_dev *pdev)
cancel_delayed_work_sync(&bp->sync_work);
for (i = 0; i < OCP_SMA_NUM; i++) {
if (bp->sma[i].dpll_pin) {
- dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, bp);
+ dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->sma[i]);
dpll_pin_put(bp->sma[i].dpll_pin);
}
}