Skip to content

Commit 97417cd

Browse files
sagimaimondavem330
authored andcommitted
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: 09eeb3a ("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>
1 parent a4255b2 commit 97417cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ptp/ptp_ocp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4492,7 +4492,7 @@ ptp_ocp_remove(struct pci_dev *pdev)
44924492
cancel_delayed_work_sync(&bp->sync_work);
44934493
for (i = 0; i < OCP_SMA_NUM; i++) {
44944494
if (bp->sma[i].dpll_pin) {
4495-
dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, bp);
4495+
dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->sma[i]);
44964496
dpll_pin_put(bp->sma[i].dpll_pin);
44974497
}
44984498
}

0 commit comments

Comments
 (0)