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: 13197143 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 1C076C76196 for ; Sat, 1 Apr 2023 16:21:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229573AbjDAQVO (ORCPT ); Sat, 1 Apr 2023 12:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjDAQVM (ORCPT ); Sat, 1 Apr 2023 12:21:12 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B6742D5E for ; Sat, 1 Apr 2023 09:21:11 -0700 (PDT) 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-mips@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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