ptp: ocp: fix bug in unregistering the DPLL subsystem
authorSagi Maimon <maimon.sagi@gmail.com>
Wed, 20 Dec 2023 08:19:14 +0000 (10:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Dec 2023 08:37:23 +0000 (08:37 +0000)
commit97417cd79ce179a774b245a3f5535cc3fbbaee50
tree529b654652043d245a70da0020d8010303e7dab1
parenta4255b2e5c52abe4e94d320cf8276303e192d59d
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>
drivers/ptp/ptp_ocp.c