Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1093866rdb; Fri, 22 Dec 2023 14:53:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0hs9eP8tXnN4I+MnOa26Z54jCI23ToXL5oH8lPHUER3Zb/+rqQtdwcut10ffLddcsgiyV X-Received: by 2002:a05:6a00:2f8e:b0:6d5:a08e:6882 with SMTP id fm14-20020a056a002f8e00b006d5a08e6882mr1488633pfb.13.1703285633682; Fri, 22 Dec 2023 14:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703285633; cv=none; d=google.com; s=arc-20160816; b=KVYPvcJcKLV8GC3DrfI8E3ZF1xe38FYB0jZuOzRE/lPC0uHv8HBFHZ7AB24nWUALaK MROum38qzMOQoadzsniGmRGZy06tF9XPG/ZE4O8yxNekKNaO6pwcngE8m9Q9z/XuT1rD jNAAo5a95faZ+Q6jBTupL0VuW/hOf2JvYuBeFiNdvepwzeDg4i/GPo5RYLVJ7CRvWAS7 YJjnRVf4R64K0GJWCwrgPRePE8aSbdh8zFkPYRygurIDNiGhwBUpoiinaXfqhQtl59Ra sU8cWoistFKN0kWWljMB07IzXPXXEhq2RDoIZDra7L4vKAcrVr4rl3X3YVZ5tQEJxxaF QtCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=XjuM9OCJRDwjYrfDyUzbBy8oQyOLp1qPzrmWQx0dTGM=; fh=/7k3G5kYgdzNREH7N5X6ApKxsFgwBo/+qx/r7G5UAw8=; b=PIQHzcdbF9t5+rRFg67hGC8UXbd7CS6kdbUMshekrWoe4Cm+EJ9j/hQGolmKuhWw84 1BOJX0q2I9NEP/KEzPWMDWnBvhY9KUEZZz2EJM58olG/Ffbr0IfBXa9AIRLVPjrCAh1T bR662ecGAn6Cm7iMQMPfeKtSEiVyzomSTkcM+nNc96nV5FJMbaHUlICbct7ELevSzw8K DKsyJVXnWPtgutYmmo4kmEhJNmYuUC1Ip7YVbvp3ncpMRbyUhWGy+uHjaUOLZJJAsZip XasVzvwt1dYu+9tr6MnKpg+Lpk3R4ra9rWx8eSsq7GttNGcus3+/heXpfRKEL470EaAw xmrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10101-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10101-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p23-20020a056a0026d700b006d9950d8bf9si820010pfw.332.2023.12.22.14.53.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 14:53:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10101-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10101-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10101-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 62EDDB22671 for ; Fri, 22 Dec 2023 22:53:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 058022F52A; Fri, 22 Dec 2023 22:51:27 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0981F381BE for ; Fri, 22 Dec 2023 22:51:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rGoML-0005Zb-AE; Fri, 22 Dec 2023 23:51:13 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rGoMJ-000quy-IS; Fri, 22 Dec 2023 23:51:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rGoMK-000Ff8-1s; Fri, 22 Dec 2023 23:51:12 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Thomas Gleixner Cc: Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: [PATCH 02/13] irqchip/imx-intmux: Convert to platform remove callback returning void Date: Fri, 22 Dec 2023 23:50:33 +0100 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1784; i=u.kleine-koenig@pengutronix.de; h=from:subject:message-id; bh=4EOrr+KkEGskg0P1J9XoWIGL8rKAKsaZhlgGBH5sOgo=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlhhK5wCvDc6ILPQThuf+7sez3z1TdJh7yxJ24I 1sfizwPvvyJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZYYSuQAKCRCPgPtYfRL+ TurYB/9xFiFUgWxcVzchQkEssIjqdO3bOh0+LZnN5kDZlcdcvByn6cNaEDhBNexJcJBzYHNqcnv 4Y4PM8PpVw07Bq2T3PpWwyP50Qnqx+hAL8ULOFvYY8FSL88chdUC5ERpkqPXXwugOuInqnoMzIE m/3922hXTJ7IZIxDJbL/0aXIGWbdsZPI9l1GNAXPCSgdvgMNKqXNiRTQ0yv5xDEzZ+ZbJ77DJwS u5rQ2hFjE6rmzQ11yq66KKK8onKBiJgc6JtsTX4FCuMXJuv3OQQXFh7P0Tltq7CCLd/rixwmIjJ +xfL9Fwyh4PYJRDuPXh8xuwM2kJ4rSYwz06GqW4YRIk9exUk X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is ignored (apart from emitting a warning) and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new(), which already returns void. Eventually after all drivers are converted, .remove_new() will be renamed to .remove(). Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Signed-off-by: Uwe Kleine-König --- drivers/irqchip/irq-imx-intmux.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-imx-intmux.c b/drivers/irqchip/irq-imx-intmux.c index aa041e4dfee0..de292bde058f 100644 --- a/drivers/irqchip/irq-imx-intmux.c +++ b/drivers/irqchip/irq-imx-intmux.c @@ -282,7 +282,7 @@ static int imx_intmux_probe(struct platform_device *pdev) return ret; } -static int imx_intmux_remove(struct platform_device *pdev) +static void imx_intmux_remove(struct platform_device *pdev) { struct intmux_data *data = platform_get_drvdata(pdev); int i; @@ -298,8 +298,6 @@ static int imx_intmux_remove(struct platform_device *pdev) } pm_runtime_disable(&pdev->dev); - - return 0; } #ifdef CONFIG_PM @@ -359,6 +357,6 @@ static struct platform_driver imx_intmux_driver = { .pm = &imx_intmux_pm_ops, }, .probe = imx_intmux_probe, - .remove = imx_intmux_remove, + .remove_new = imx_intmux_remove, }; builtin_platform_driver(imx_intmux_driver); -- 2.42.0