From patchwork Mon Oct 10 01:29:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Fedorenko X-Patchwork-Id: 13002196 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CB72C433F5 for ; Mon, 10 Oct 2022 01:29:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230362AbiJJB3y (ORCPT ); Sun, 9 Oct 2022 21:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbiJJB3v (ORCPT ); Sun, 9 Oct 2022 21:29:51 -0400 Received: from novek.ru (unknown [213.148.174.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB466FD2D for ; Sun, 9 Oct 2022 18:29:42 -0700 (PDT) Received: from nat1.ooonet.ru (gw.zelenaya.net [91.207.137.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id D0359504AE0; Mon, 10 Oct 2022 04:26:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru D0359504AE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1665365175; bh=PWwRId+yde+GfxkveeLZJEWRmwtTwOkpSUTt+ioN15I=; h=From:To:Cc:Subject:Date:From; b=sfT3j2DR4XNIowmicyROqcMokv5Ekv/ri68av2/gitz+16TnRntpYztzTwtSlumiV UkoP1QUnwt1tYKEdQhti4nh8CFG9zPrfDkgDDfrZQDMuJLV0DXJLhMa0baxs6FDNLc YtxcmVhxjGo5NQ4t3z+ic+cCSxMVEjzayHt5zh8c= From: Vadim Fedorenko To: Jonathan Lemon Cc: netdev@vger.kernel.org, Vadim Fedorenko , Vadim Fedorenko Subject: [[PATCH net]] ptp: ocp: remove symlink for second GNSS Date: Mon, 10 Oct 2022 04:29:34 +0300 Message-Id: <20221010012934.25639-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 Acked-by: Jonathan Lemon --- 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");