Message ID | 20221010012934.25639-1-vfedorenko@novek.ru (mailing list archive) |
---|---|
State | Accepted |
Commit | 84cdf5bcbdce1622eeb6c857f8a7e383de1074a9 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [[PATCH,net] ] ptp: ocp: remove symlink for second GNSS | expand |
On 10/9/22 6:29 PM, Vadim Fedorenko wrote: > 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> Thanks, Vadim! Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com> > --- > drivers/ptp/ptp_ocp.c | 1 + > 1 file changed, 1 insertion(+) > > 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");
Hello: This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>: On Mon, 10 Oct 2022 04:29:34 +0300 you wrote: > 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> > --- > drivers/ptp/ptp_ocp.c | 1 + > 1 file changed, 1 insertion(+) Here is the summary with links: - [[PATCH,net] ] ptp: ocp: remove symlink for second GNSS https://git.kernel.org/netdev/net/c/84cdf5bcbdce You are awesome, thank you!
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");
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> --- drivers/ptp/ptp_ocp.c | 1 + 1 file changed, 1 insertion(+)