diff options
author | Vadim Fedorenko <vfedorenko@novek.ru> | 2022-10-10 04:29:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-10 08:37:24 +0100 |
commit | 84cdf5bcbdce1622eeb6c857f8a7e383de1074a9 (patch) | |
tree | 8bea4a599a01f1d34d9f200a1904c33e663bcadb | |
parent | b2cf5d902ec1a7560f20945ddd2b0de82eff7cf3 (diff) | |
download | linux-stable-84cdf5bcbdce1622eeb6c857f8a7e383de1074a9.tar.gz linux-stable-84cdf5bcbdce1622eeb6c857f8a7e383de1074a9.tar.bz2 linux-stable-84cdf5bcbdce1622eeb6c857f8a7e383de1074a9.zip |
] ptp: ocp: remove symlink for second GNSS
Destroy code doesn't remove symlink for ttyGNSS2 device introduced
earlier. Add cleanup code.
Fixes: 71d7e0850476 ("ptp: ocp: Add second GNSS device")
Signed-off-by: Vadim Fedorenko <vadfed@fb.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/ptp/ptp_ocp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index d36c3f597f77..a48d9b7d2921 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -3657,6 +3657,7 @@ ptp_ocp_detach_sysfs(struct ptp_ocp *bp) struct device *dev = &bp->dev; sysfs_remove_link(&dev->kobj, "ttyGNSS"); + sysfs_remove_link(&dev->kobj, "ttyGNSS2"); sysfs_remove_link(&dev->kobj, "ttyMAC"); sysfs_remove_link(&dev->kobj, "ptp"); sysfs_remove_link(&dev->kobj, "pps"); |