From patchwork Fri Feb 17 09:53:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13144488 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2813BC636D4 for ; Fri, 17 Feb 2023 09:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yVtpG3QCzjCia4B1M4h6iXs7F3Zd4rCYxTvRsO38iRw=; b=GPJbfCXWlPuXw+ wzXCs5R975CbJbxpqoQhBBzEmO8qt0Hh5ppS+fgvMQLZfI3FcxgwFYz+XSSgYr79emYZkM+m+d5Ef uEvQ75Ovl2nXNSKWAaTBX8mKliJ+P7CqKdi2S5F0lz7balZJiTWmbWT/A2pWtUzIWfp1rE5oU9T7p W3Ed4Dp8NcwoUWB444FUnRGLOESJe0ZjdnjjBsSwHgUZMtRBGJSIXZ3n30v9+Q6E/cZuLP/CzhUyX krPaBUZMoTTJUD+Vrw/aeZOfZ2WjyX15QfT5lWbsXcJemkQEHXa+jluFyeI2VxWP+U+jmXa/Pe6AG D96auOcTjbfAWp9e4H0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSxQy-00DZCk-UM; Fri, 17 Feb 2023 09:53:41 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSxQv-00DZAh-Ao for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 09:53:38 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pSxQj-0001Bz-GS; Fri, 17 Feb 2023 10:53:25 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pSxQg-005YFM-TS; Fri, 17 Feb 2023 10:53:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pSxQh-004I1u-Fu; Fri, 17 Feb 2023 10:53:23 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Wim Van Sebroeck , Guenter Roeck , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: [PATCH] watchdog: at91rm9200: Only warn once about problems in .remove() Date: Fri, 17 Feb 2023 10:53:17 +0100 Message-Id: <20230217095317.1213387-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1019; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=KCFCul1v7TIKLH577N/fp9oqdUwOHohszUuC4GmMQVs=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBj706K832g6brobPK/iG1WsgyKDXYEPahLdnc4B vxqba+uWLCJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY+9OigAKCRDB/BR4rcrs CTvbB/9hR2AJfN4Nnwl/XUWQoa0lWCxmm83VlXuVTHoH+xnqjh8sKqfa0iBPGCrCWeQyE0NJuZv meH9xvEgp0NFaLBGwXeXkjz4FBUmYOOyrGYhAR618vqZ387eLsTmRHMaBGzCKQoEo7PE/mH7Vb9 xF7y/dmcyOh2kLhvDlpgFgZi/6PpTpkjxKIAZkEo1uQB9he7hmXC2Vkp6lM9eue3UQKGlQa8WQV NxFeOMCpQ9Cf4IbwDuQ29+mJ3U0cufx3euEly3cr0K8tRdkH9zltetRIRrbG6rr9A3ETxOcbgKj KGzFjXiwA9W4PHO1MtlpmIX0rbOtODM8XsedB1EHnAQCbtct X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_015337_402966_E505232F X-CRM114-Status: GOOD ( 14.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The single difference between returning 0 and returning an error code in a platform remove callback is that in the latter case the platform core emits a warning about the error being ignored. at91wdt_remove() already emits a warning in the error case, so suppress the more generic (and less helpful) one by returning 0. Signed-off-by: Uwe Kleine-König Reviewed-by: Claudiu Beznea Reviewed-by: Guenter Roeck --- drivers/watchdog/at91rm9200_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 033c40a89f55525139fd5b6342281b09b97d05bf diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c index 5126454bb861..d57409c1a4d1 100644 --- a/drivers/watchdog/at91rm9200_wdt.c +++ b/drivers/watchdog/at91rm9200_wdt.c @@ -270,7 +270,7 @@ static int at91wdt_remove(struct platform_device *pdev) misc_deregister(&at91wdt_miscdev); at91wdt_miscdev.parent = NULL; - return res; + return 0; } static void at91wdt_shutdown(struct platform_device *pdev)