From patchwork Sat Apr 1 16:18:49 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: 13197155 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 C867EC761AF for ; Sat, 1 Apr 2023 16:45: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=aIVQ4ywaz7Rds6V7JOsH+NH5N12oX6zDw8AE3qmGeQk=; b=Cnej86h5q2Vv7X 4TWUpljzOLmTGuakL+vHOajMb/2FWarrs0My6+il3YOImpX5nvNMXXaXm/emV1m8nEfM2bpVNiDPo dWgOdwsiDP4cldLpV1SoEP8m3qTIZHSNOqBK5KRaOn+1lKGDlCDiLh2hyIzP1cBTosTRR4EZfQzUM y6ZnLbJ/WDhtHwFFfVW4r4+mtlk84lDQxuLKoUIWR+qhdOVNQMVBGxBm9PBm2hfd2PipDX0zkRmkh JY8Y9eEAlxkurnF1AVqZerJ0kNoP8XZiR8qlXXv+Lau9JggrYxVJsamGKtSaNhb5mZvvNtKrCdL0e 8AFcrx0enT6+UCzawMBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pieM4-00AzF4-0x; Sat, 01 Apr 2023 16:45:32 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pieM1-00AzES-30 for linux-rockchip@bombadil.infradead.org; Sat, 01 Apr 2023 16:45:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=mpjVsz4vIjhQCXzanabZ+xwCS+Bpd8qvskUAU13afGs=; b=p6rQ8VmMzzIKcxYvs8Cw9ukmH3 pd1WaSjPMFWFeLk7wDI959r9a+Tq9MxuiWURyIrBYfVjt7Ui1/ZEFHGnmcBlRqaoZJmk7DEheu2kX UWheCwplqFsay1asESS0nHKeLXzDpeUuzQ2A6ipW/67K6chIvk+RJVJMmITXDtIb/+QP/zlSFSbNZ c+35ScioHX5VtTcYE30juRkv8IrzeAJfoelYfWJe8RXidbCP4haln4HSdCT12gCTwdwdSWRVpEbVa 3wOpfAn7g2aO8AfupyM1elzFaAqROdMJnMdY5Ku09wFLTqZwWqqUFZ7M/Kaw8NBxy88lqQjo4vZg/ SHkBZfzQ==; Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pidyU-008DVE-2g for linux-rockchip@lists.infradead.org; Sat, 01 Apr 2023 16:21:08 +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 1pidxN-00089G-VF; Sat, 01 Apr 2023 18:19:58 +0200 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 1pidxD-008GPi-EI; Sat, 01 Apr 2023 18:19:47 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pidxC-009kf7-7s; Sat, 01 Apr 2023 18:19:46 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Miquel Raynal , Vignesh Raghavendra , Kyungmin Park , Naga Sureshkumar Relli , Tudor Ambarus , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Yang Yingliang , ye xingchen , Valentin Korenblit , Wang Weiyang , =?utf-8?q?Pali_Roh=C3=A1r?= , =?utf-8?q?Marek_Beh=C3=BAn?= , Han Xu , Harvey Hunt , Paul Cercueil , Martin Blumenstingl , Vladimir Zapolskiy , Geert Uytterhoeven , Dmitry Torokhov , Liang Yang , Neil Armstrong , Kevin Hilman , Christophe Leroy , Phil Edworthy , Matthias Brugger , Chuanhong Guo , Roger Quadros , Christophe JAILLET , Manivannan Sadhasivam , Heiko Stuebner , Krzysztof Kozlowski , Arnd Bergmann , Linus Walleij , Stephen Boyd , Miaoqian Lin , Maxime Coquelin , Alexandre Torgue , Christophe Kerello , Jack Wang , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Stefan Agner , Lucas Stach , Thierry Reding , Jonathan Hunter Cc: Richard Weinberger , linux-mtd@lists.infradead.org, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Jerome Brunet , linux-amlogic@lists.infradead.org, AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, linux-oxnas@groups.io, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org Subject: [PATCH 00/49] mtd: nand: Convert to platform remove callback returning void Date: Sat, 1 Apr 2023 18:18:49 +0200 Message-Id: <20230401161938.2503204-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=7821; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=8nRDgN5CqU2nRF//FRAdHbfY+cIFaqsEtSZQEPh7QiU=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBkKFjvp7868qd0VsHN6SrxaEO8NTL3D3fmpZjg3 cwKJmJerMqJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZChY7wAKCRCPgPtYfRL+ TmkoB/9SLYo/ZDac4CvKk1I5MwZ2nAQBqeUpre7ZKONouC+Gkder1fO1RUM4NlhPPEffEi+2yVj hvcHL7KB5t8UeLrH1vE4Nfi5/3wVAmPww7pWHCPy5AF29t7fgt3U/IYs9QHSysdj+FA73SP/62S ZWdZgdVuVhqYvfPh2RsBg7QJYkAjbhmhA3ZY080V2LH7EpMW6GwOSdQ0OEZ6da9H82tbY9Uz4zk Rb5KLVyrwfuT0n3Dw5q7/YmB6D8y15Diqty+SnJAGLqjGgKNbPUxVOuBDgnXJHcMdA2etpWvgh/ zGMY8LDnJKc/tIuA8o341utDrcxym5uDPWg81ONd0MsBvTHu 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-rockchip@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230401_172106_970262_34E39EB0 X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Hello, this series adapts the platform drivers below drivers/mtd/nand to use the .remove_new() callback. Compared to the traditional .remove() callback .remove_new() returns no value. This is a good thing because the driver core doesn't (and cannot) cope for errors during remove. The only effect of a non-zero return value in .remove() is that the driver core emits a warning. The device is removed anyhow and an early return from .remove() usually yields a resource leak. By changing the remove callback to return void driver authors cannot reasonably assume any more that there is some kind of cleanup later. As all drivers already return 0 in their .remove callback, they can be converted trivially. Thanks Uwe Uwe Kleine-König (49): mtd: nand: mxic-ecc: Convert to platform remove callback returning void mtd: onenand: generic: Convert to platform remove callback returning void mtd: onenand: omap2: Convert to platform remove callback returning void mtd: onenand: samsung: Convert to platform remove callback returning void mtd: rawnand: ams-delta: Convert to platform remove callback returning void mtd: rawnand: arasan: Convert to platform remove callback returning void mtd: rawnand: atmel: Convert to platform remove callback returning void mtd: rawnand: au1550nd: Convert to platform remove callback returning void mtd: rawnand: bcm47xxnflash: Convert to platform remove callback returning void mtd: rawnand: cadence: Convert to platform remove callback returning void mtd: rawnand: davinci: Convert to platform remove callback returning void mtd: rawnand: denali_dt: Convert to platform remove callback returning void mtd: rawnand: fsl_elbc: Convert to platform remove callback returning void mtd: rawnand: fsl_ifc: Convert to platform remove callback returning void mtd: rawnand: fsl_upm: Convert to platform remove callback returning void mtd: rawnand: fsmc: Convert to platform remove callback returning void mtd: rawnand: gpio: Convert to platform remove callback returning void mtd: rawnand: gpmi: Convert to platform remove callback returning void mtd: rawnand: hisi504: Convert to platform remove callback returning void mtd: rawnand: ingenic: Convert to platform remove callback returning void mtd: rawnand: intel: Convert to platform remove callback returning void mtd: rawnand: lpc32xx_mlc: Convert to platform remove callback returning void mtd: rawnand: lpc32xx_slc: Convert to platform remove callback returning void mtd: rawnand: marvell: Convert to platform remove callback returning void mtd: rawnand: meson: Convert to platform remove callback returning void mtd: rawnand: mpc5121_nfc: Convert to platform remove callback returning void mtd: rawnand: mtk: Convert to platform remove callback returning void mtd: rawnand: mxc: Convert to platform remove callback returning void mtd: rawnand: mxic: Convert to platform remove callback returning void mtd: rawnand: ndfc: Convert to platform remove callback returning void mtd: rawnand: omap2: Convert to platform remove callback returning void mtd: rawnand: omap_elm: Convert to platform remove callback returning void mtd: rawnand: orion: Convert to platform remove callback returning void mtd: rawnand: oxnas: Convert to platform remove callback returning void mtd: rawnand: pasemi: Convert to platform remove callback returning void mtd: rawnand: pl35x: Convert to platform remove callback returning void mtd: rawnand: plat: Convert to platform remove callback returning void mtd: rawnand: qcom: Convert to platform remove callback returning void mtd: rawnand: renesas: Convert to platform remove callback returning void mtd: rawnand: rockchip: Convert to platform remove callback returning void mtd: rawnand: s3c2410: Convert to platform remove callback returning void mtd: rawnand: sh_flctl: Convert to platform remove callback returning void mtd: rawnand: sharpsl: Convert to platform remove callback returning void mtd: rawnand: socrates: Convert to platform remove callback returning void mtd: rawnand: stm32_fmc2: Convert to platform remove callback returning void mtd: rawnand: sunxi: Convert to platform remove callback returning void mtd: rawnand: tegra: Convert to platform remove callback returning void mtd: rawnand: vf610_nfc: Convert to platform remove callback returning void mtd: rawnand: xway: Convert to platform remove callback returning void drivers/mtd/nand/ecc-mxic.c | 6 ++---- drivers/mtd/nand/onenand/generic.c | 6 ++---- drivers/mtd/nand/onenand/onenand_omap2.c | 6 ++---- drivers/mtd/nand/onenand/onenand_samsung.c | 6 ++---- drivers/mtd/nand/raw/ams-delta.c | 6 ++---- drivers/mtd/nand/raw/arasan-nand-controller.c | 6 ++---- drivers/mtd/nand/raw/atmel/nand-controller.c | 6 ++---- drivers/mtd/nand/raw/au1550nd.c | 5 ++--- drivers/mtd/nand/raw/bcm47xxnflash/main.c | 6 ++---- drivers/mtd/nand/raw/cadence-nand-controller.c | 6 ++---- drivers/mtd/nand/raw/davinci_nand.c | 6 ++---- drivers/mtd/nand/raw/denali_dt.c | 6 ++---- drivers/mtd/nand/raw/fsl_elbc_nand.c | 6 ++---- drivers/mtd/nand/raw/fsl_ifc_nand.c | 6 ++---- drivers/mtd/nand/raw/fsl_upm.c | 6 ++---- drivers/mtd/nand/raw/fsmc_nand.c | 6 ++---- drivers/mtd/nand/raw/gpio.c | 6 ++---- drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 5 ++--- drivers/mtd/nand/raw/hisi504_nand.c | 6 ++---- drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c | 6 ++---- drivers/mtd/nand/raw/intel-nand-controller.c | 6 ++---- drivers/mtd/nand/raw/lpc32xx_mlc.c | 6 ++---- drivers/mtd/nand/raw/lpc32xx_slc.c | 6 ++---- drivers/mtd/nand/raw/marvell_nand.c | 6 ++---- drivers/mtd/nand/raw/meson_nand.c | 6 ++---- drivers/mtd/nand/raw/mpc5121_nfc.c | 6 ++---- drivers/mtd/nand/raw/mtk_nand.c | 6 ++---- drivers/mtd/nand/raw/mxc_nand.c | 6 ++---- drivers/mtd/nand/raw/mxic_nand.c | 5 ++--- drivers/mtd/nand/raw/ndfc.c | 6 ++---- drivers/mtd/nand/raw/omap2.c | 5 ++--- drivers/mtd/nand/raw/omap_elm.c | 5 ++--- drivers/mtd/nand/raw/orion_nand.c | 6 ++---- drivers/mtd/nand/raw/oxnas_nand.c | 6 ++---- drivers/mtd/nand/raw/pasemi_nand.c | 6 ++---- drivers/mtd/nand/raw/pl35x-nand-controller.c | 6 ++---- drivers/mtd/nand/raw/plat_nand.c | 6 ++---- drivers/mtd/nand/raw/qcom_nandc.c | 6 ++---- drivers/mtd/nand/raw/renesas-nand-controller.c | 6 ++---- drivers/mtd/nand/raw/rockchip-nand-controller.c | 6 ++---- drivers/mtd/nand/raw/s3c2410.c | 8 +++----- drivers/mtd/nand/raw/sh_flctl.c | 6 ++---- drivers/mtd/nand/raw/sharpsl.c | 6 ++---- drivers/mtd/nand/raw/socrates_nand.c | 6 ++---- drivers/mtd/nand/raw/stm32_fmc2_nand.c | 6 ++---- drivers/mtd/nand/raw/sunxi_nand.c | 6 ++---- drivers/mtd/nand/raw/tegra_nand.c | 6 ++---- drivers/mtd/nand/raw/vf610_nfc.c | 5 ++--- drivers/mtd/nand/raw/xway_nand.c | 6 ++---- 49 files changed, 99 insertions(+), 191 deletions(-) base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 Acked-by: Tudor Ambarus Acked-by: Nicolas Ferre # atmel Reviewed-by: Paul Cercueil # ingenic Reviewed-by: Philippe Mathieu-Daudé # ingenic Acked-by: Martin Blumenstingl # intel Reviewed-by: Martin Blumenstingl # meson Acked-by: Roger Quadros # omap Reviewed-by: Geert Uytterhoeven # renesas Reviewed-by: Heiko Stuebner # rockchip Acked-by: Jernej Skrabec # sunxi Acked-by: Thierry Reding # tegra