From patchwork Wed May 17 23:01:02 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: 13248707 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 A968AC7EE26 for ; Fri, 19 May 2023 18:01:22 +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=i+/wOkNlFsEjejjXI4o/bfLq67ULeOooBiPUHBTXwJI=; b=c1xVYQqJVgiaVK p0ihiphP6Nr78bCYl+A08qIlqh+EteCn2pZldTDlr0R/g0XkKuCh0qTJP/VYdSHhmR/4riDFK1L4M XUW//DsRsZSL/WMzF3gKPREkcXaKOfkBp+3Av99pRcb/Ij4olh5flBJGggliU03vCDTdfnieLNPub V6MA1qhwqII5smJxmk4vCZIaJ076yTN4poqitSQ2Zz4v1PiHiC1fXg2f1CIS54UVKv4TGVTlbkT1P Rx4hbCsvU0VmsWTjAqEN/5VGcWVrIJzoSTdW+OrfIdxyTn3SwmeCLB0jduZyktDZvxWit+yaC/+VS JA4aj63OxMdYlvRd6hVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q04Pb-00GwGh-1P; Fri, 19 May 2023 18:01:07 +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 1pzQAu-00BIEo-24 for linux-amlogic@bombadil.infradead.org; Wed, 17 May 2023 23:03:16 +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=WdWBHHXO5JpAEuaUqYL4uT5yeMnorHs41h+xLKm2wC4=; b=LhsQm8GWbUd5rphfmZtsMwaakU e0uytGFozFpX2HiNPEQTQZNvePNygCtKQXjfbuaTaTkEffMc0SCMgKTGsxNt71TYYHEo/vQQuc/pC vMTd2rBuI2Q7ZG6zaUfjxMwY7WfOk9Aj52drRgFzCv2d8VxCzMjh0Qr7fjocQ3rCC+NKAmkYpRf30 hiHl5PFaGBwEVm6BFhnBqoNZk9JQNR+MS+VIMmBAw3EqT55iD5qYtU/nFAk3IOdeOECVCWV9JDeJ4 jv7cFLnmhE2ysKFHS62fH5rh+K/QDnwuv6TI6ztOtYiHLrieVrDYkafgI2MJZ0KnMgpoiHvO/A0XQ 0yYI9xAA==; 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 1pzQAn-00DMb9-2A for linux-amlogic@lists.infradead.org; Wed, 17 May 2023 23:03:13 +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 1pzQAP-0007j9-9U; Thu, 18 May 2023 01:02:45 +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 1pzQAN-000wnZ-18; Thu, 18 May 2023 01:02:43 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pzQAM-005UVF-2k; Thu, 18 May 2023 01:02:42 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Greg Kroah-Hartman , Peter Chen , Pawel Laszczak , Shawn Guo , Sascha Hauer , Thierry Reding , Jonathan Hunter , Chunfeng Yun , Christophe JAILLET , Prashanth K , Minas Harutyunyan , Thinh Nguyen , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Andy Gross , Bjorn Andersson , Patrice Chotard , Michal Simek , Linus Walleij , Andy Shevchenko , Joel Stanley , Benjamin Herrenschmidt , Lei YU , Neal Liu , Henry Tian , Cristian Birsan , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Kevin Cernekee , Justin Chen , Al Cooper , Li Yang , Gaosheng Cui , Alan Stern , Aaro Koskinen , Paolo Abeni , "Steven Rostedt (Google)" , Kalle Valo , Kang Chen , Shaomin Deng , Arnd Bergmann , Laurent Pinchart , Richard Leitner , Colin Ian King , Wolfram Sang , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Biju Das , Geert Uytterhoeven , Zheng Wang , Phil Edworthy , Herve Codina , Rob Herring , Wayne Chang , Haotien Hsu , Jim Lin , Tang Bin , Sing-Han Chen , Piyush Mehta , Avi Fishman , Tomer Maimon , Tali Perry , Darren Stevens , Alexander Stein , Olav Kongas , Artur Bujdoso , Vladimir Zapolskiy , "Gustavo A. R. Silva" , Mathias Nyman , Matthias Brugger , Rui Miguel Silva , Souradeep Chowdhury , Francesco Dolcini , Emanuele Ghidoli , Jean Delvare , Dongliang Mu , Hans de Goede , Heikki Krogerus , Guenter Roeck , Dan Carpenter , =?utf-8?q?Samuel_=C4=8Cavoj?= , Valentina Manea , Shuah Khan Cc: linux-usb@vger.kernel.org, kernel@pengutronix.de, Roger Quadros , Aswath Govindraju , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Alim Akhtar , linux-samsung-soc@vger.kernel.org, Jerome Brunet , Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-omap@vger.kernel.org, Konrad Dybcio , linux-arm-msm@vger.kernel.org, Andrew Jeffery , linux-aspeed@lists.ozlabs.org, Broadcom internal kernel review list , linuxppc-dev@lists.ozlabs.org, linux-renesas-soc@vger.kernel.org, Patrick Venture , Nancy Yuen , Benjamin Fair , openbmc@lists.ozlabs.org, AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, Hongren Zheng Subject: [PATCH 00/97] usb: Convert to platform remove callback returning void Date: Thu, 18 May 2023 01:01:02 +0200 Message-Id: <20230517230239.187727-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=13896; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=fqdhPP54usEi8baXSoJI3FzPlkc2fS3jhA8DcZSCQuk=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBkZVvo7YCpz/3hjEBffLjdT8PvX4si+92iw+jNb Tz6v0ULfQiJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZGVb6AAKCRCPgPtYfRL+ TlYMCACAXHsbcSe2/YxZgpBERFMM+jw4JinGM2u2mtbpocRgDWydlQkNFy06NXz1h2u2LDPPSIk iwAWSLfyjZF5lILnnr1YPqSGMAud+fjVygVXeafiHtV2ZVmijZlE5qO5hIdvYYfYPm00rV346M1 0n6/klc5RNf6vwRbm5bfbW4TL9w/yh7gjm3FhYVqzy2qnbyWjW2RI51VigjlXmPY0yu7Fc+E3/g 977tkeVRRvrmYhF1SBhLzzklWCnQ98bnL+n69yxGNr1WiQY2NG+etq4cDuF0q8cOAYWpmmIt5MX nmIPrvIgStBnrRfZ8cNeWWPjB9kFO+x2K8B7eEv8WwwsqITu 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-amlogic@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230518_000311_452085_B9389F10 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-Mailman-Approved-At: Fri, 19 May 2023 11:01:05 -0700 X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Hello, this series convers the drivers below drivers/usb to the .remove_new() callback of struct platform_driver(). The motivation is to make the remove callback less prone for errors and wrong assumptions. See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for a more detailed rationale. All drivers converted here already returned zero unconditionally in their .remove() callback, so converting them to .remove_new() is trivial. Best regards Uwe Uwe Kleine-König (97): usb: c67x00-drv: Convert to platform remove callback returning void usb: cdns3-imx: Convert to platform remove callback returning void usb: cdns3-plat: Convert to platform remove callback returning void usb: cdns3-ti: Convert to platform remove callback returning void usb: chipidea/ci_hdrc_imx: Convert to platform remove callback returning void usb: chipidea/ci_hdrc_msm: Convert to platform remove callback returning void usb: chipidea/ci_hdrc_tegra: Convert to platform remove callback returning void usb: chipidea/ci_hdrc_usb2: Convert to platform remove callback returning void usb: chipidea/core: Convert to platform remove callback returning void usb: common: usb-conn-gpio: Convert to platform remove callback returning void usb: dwc2/platform: Convert to platform remove callback returning void usb: core: Convert to platform remove callback returning void usb: dwc3-am62: Convert to platform remove callback returning void usb: dwc3-exynos: Convert to platform remove callback returning void usb: dwc3-imx8mp: Convert to platform remove callback returning void usb: dwc3-keystone: Convert to platform remove callback returning void usb: dwc3-meson-g12a: Convert to platform remove callback returning void usb: dwc3-of-simple: Convert to platform remove callback returning void usb: dwc3-omap: Convert to platform remove callback returning void usb: dwc3-qcom: Convert to platform remove callback returning void usb: dwc3-st: Convert to platform remove callback returning void usb: dwc3-xilinx: Convert to platform remove callback returning void usb: fotg210: Convert to platform remove callback returning void usb: gadget: hid: Convert to platform remove callback returning void usb: gadget: aspeed: Convert to platform remove callback returning void usb: gadget/atmel_usba_udc: Convert to platform remove callback returning void usb: gadget/bcm63xx_udc: Convert to platform remove callback returning void usb: bdc: Convert to platform remove callback returning void usb: gadget/dummy_hcd: Convert to platform remove callback returning void usb: gadget/fsl_qe_udc: Convert to platform remove callback returning void usb: gadget/fusb300_udc: Convert to platform remove callback returning void usb: gadget/m66592-udc: Convert to platform remove callback returning void usb: gadget/mv_u3d_core: Convert to platform remove callback returning void usb: gadget/mv_udc_core: Convert to platform remove callback returning void usb: gadget/net2272: Convert to platform remove callback returning void usb: gadget/omap_udc: Convert to platform remove callback returning void usb: gadget/pxa27x_udc: Convert to platform remove callback returning void usb: gadget/r8a66597-udc: Convert to platform remove callback returning void usb: gadget/renesas_usb3: Convert to platform remove callback returning void usb: gadget/renesas_usbf: Convert to platform remove callback returning void usb: gadget/rzv2m_usb3drd: Convert to platform remove callback returning void usb: gadget/snps_udc_plat: Convert to platform remove callback returning void usb: gadget/tegra-xudc: Convert to platform remove callback returning void usb: gadget/udc-xilinx: Convert to platform remove callback returning void usb: ehci-atmel: Convert to platform remove callback returning void usb: ehci-brcm: Convert to platform remove callback returning void usb: ehci-exynos: Convert to platform remove callback returning void usb: ehci-fsl: Convert to platform remove callback returning void usb: ehci-grlib: Convert to platform remove callback returning void usb: ehci-mv: Convert to platform remove callback returning void usb: ehci-npcm7xx: Convert to platform remove callback returning void usb: ehci-omap: Convert to platform remove callback returning void usb: ehci-orion: Convert to platform remove callback returning void usb: ehci-platform: Convert to platform remove callback returning void usb: ehci-ppc-of: Convert to platform remove callback returning void usb: ehci-sh: Convert to platform remove callback returning void usb: ehci-spear: Convert to platform remove callback returning void usb: ehci-st: Convert to platform remove callback returning void usb: ehci-xilinx-of: Convert to platform remove callback returning void usb: fsl-mph-dr-of: Convert to platform remove callback returning void usb: isp116x-hcd: Convert to platform remove callback returning void usb: isp1362-hcd: Convert to platform remove callback returning void usb: octeon-hcd: Convert to platform remove callback returning void usb: ohci-at91: Convert to platform remove callback returning void usb: ohci-da8xx: Convert to platform remove callback returning void usb: ohci-exynos: Convert to platform remove callback returning void usb: ohci-nxp: Convert to platform remove callback returning void usb: ohci-omap: Convert to platform remove callback returning void usb: ohci-platform: Convert to platform remove callback returning void usb: ohci-ppc-of: Convert to platform remove callback returning void usb: ohci-pxa27x: Convert to platform remove callback returning void usb: ohci-s3c2410: Convert to platform remove callback returning void usb: ohci-sm501: Convert to platform remove callback returning void usb: ohci-spear: Convert to platform remove callback returning void usb: ohci-st: Convert to platform remove callback returning void usb: oxu210hp-hcd: Convert to platform remove callback returning void usb: r8a66597-hcd: Convert to platform remove callback returning void usb: sl811-hcd: Convert to platform remove callback returning void usb: uhci-grlib: Convert to platform remove callback returning void usb: uhci-platform: Convert to platform remove callback returning void usb: xhci-histb: Convert to platform remove callback returning void usb: xhci-mtk: Convert to platform remove callback returning void usb: xhci-plat: Convert to platform remove callback returning void usb: xhci-tegra: Convert to platform remove callback returning void usb: isp1760: Convert to platform remove callback returning void usb: misc: eud: Convert to platform remove callback returning void usb: misc: usb3503: Convert to platform remove callback returning void usb: renesas_usbhs: Convert to platform remove callback returning void usb: roles: intel_xhci: Convert to platform remove callback returning void usb: typec: mux: gpio-sbu: Convert to platform remove callback returning void usb: typec: intel_pmc_mux: Convert to platform remove callback returning void usb: typec: qcom-pmic-typec: Convert to platform remove callback returning void usb: typec: tcpci_mt6360: Convert to platform remove callback returning void usb: typec: tcpci_mt6360: Convert to platform remove callback returning void usb: typec: wcove: Convert to platform remove callback returning void usb: typec: ucsi: acpi: Convert to platform remove callback returning void usbip: vhci_hcd: Convert to platform remove callback returning void drivers/usb/c67x00/c67x00-drv.c | 6 ++---- drivers/usb/cdns3/cdns3-imx.c | 6 ++---- drivers/usb/cdns3/cdns3-plat.c | 5 ++--- drivers/usb/cdns3/cdns3-ti.c | 6 ++---- drivers/usb/chipidea/ci_hdrc_imx.c | 6 ++---- drivers/usb/chipidea/ci_hdrc_msm.c | 6 ++---- drivers/usb/chipidea/ci_hdrc_tegra.c | 6 ++---- drivers/usb/chipidea/ci_hdrc_usb2.c | 6 ++---- drivers/usb/chipidea/core.c | 6 ++---- drivers/usb/common/usb-conn-gpio.c | 6 ++---- drivers/usb/dwc2/platform.c | 6 ++---- drivers/usb/dwc3/core.c | 6 ++---- drivers/usb/dwc3/dwc3-am62.c | 5 ++--- drivers/usb/dwc3/dwc3-exynos.c | 6 ++---- drivers/usb/dwc3/dwc3-imx8mp.c | 6 ++---- drivers/usb/dwc3/dwc3-keystone.c | 6 ++---- drivers/usb/dwc3/dwc3-meson-g12a.c | 6 ++---- drivers/usb/dwc3/dwc3-of-simple.c | 6 ++---- drivers/usb/dwc3/dwc3-omap.c | 6 ++---- drivers/usb/dwc3/dwc3-qcom.c | 6 ++---- drivers/usb/dwc3/dwc3-st.c | 6 ++---- drivers/usb/dwc3/dwc3-xilinx.c | 6 ++---- drivers/usb/fotg210/fotg210-core.c | 6 ++---- drivers/usb/gadget/legacy/hid.c | 6 ++---- drivers/usb/gadget/udc/aspeed-vhub/core.c | 8 +++----- drivers/usb/gadget/udc/atmel_usba_udc.c | 6 ++---- drivers/usb/gadget/udc/bcm63xx_udc.c | 6 ++---- drivers/usb/gadget/udc/bdc/bdc_core.c | 5 ++--- drivers/usb/gadget/udc/dummy_hcd.c | 11 ++++------- drivers/usb/gadget/udc/fsl_qe_udc.c | 6 ++---- drivers/usb/gadget/udc/fusb300_udc.c | 6 ++---- drivers/usb/gadget/udc/m66592-udc.c | 5 ++--- drivers/usb/gadget/udc/mv_u3d_core.c | 6 ++---- drivers/usb/gadget/udc/mv_udc_core.c | 6 ++---- drivers/usb/gadget/udc/net2272.c | 6 ++---- drivers/usb/gadget/udc/omap_udc.c | 6 ++---- drivers/usb/gadget/udc/pxa27x_udc.c | 6 ++---- drivers/usb/gadget/udc/r8a66597-udc.c | 6 ++---- drivers/usb/gadget/udc/renesas_usb3.c | 6 ++---- drivers/usb/gadget/udc/renesas_usbf.c | 6 ++---- drivers/usb/gadget/udc/rzv2m_usb3drd.c | 6 ++---- drivers/usb/gadget/udc/snps_udc_plat.c | 8 +++----- drivers/usb/gadget/udc/tegra-xudc.c | 6 ++---- drivers/usb/gadget/udc/udc-xilinx.c | 6 ++---- drivers/usb/host/ehci-atmel.c | 6 ++---- drivers/usb/host/ehci-brcm.c | 5 ++--- drivers/usb/host/ehci-exynos.c | 6 ++---- drivers/usb/host/ehci-fsl.c | 6 ++---- drivers/usb/host/ehci-grlib.c | 6 ++---- drivers/usb/host/ehci-mv.c | 6 ++---- drivers/usb/host/ehci-npcm7xx.c | 6 ++---- drivers/usb/host/ehci-omap.c | 6 ++---- drivers/usb/host/ehci-orion.c | 6 ++---- drivers/usb/host/ehci-platform.c | 6 ++---- drivers/usb/host/ehci-ppc-of.c | 6 ++---- drivers/usb/host/ehci-sh.c | 6 ++---- drivers/usb/host/ehci-spear.c | 6 ++---- drivers/usb/host/ehci-st.c | 6 ++---- drivers/usb/host/ehci-xilinx-of.c | 6 ++---- drivers/usb/host/fsl-mph-dr-of.c | 5 ++--- drivers/usb/host/isp116x-hcd.c | 7 +++---- drivers/usb/host/isp1362-hcd.c | 6 ++---- drivers/usb/host/octeon-hcd.c | 6 ++---- drivers/usb/host/ohci-at91.c | 5 ++--- drivers/usb/host/ohci-da8xx.c | 6 ++---- drivers/usb/host/ohci-exynos.c | 6 ++---- drivers/usb/host/ohci-nxp.c | 6 ++---- drivers/usb/host/ohci-omap.c | 5 ++--- drivers/usb/host/ohci-platform.c | 6 ++---- drivers/usb/host/ohci-ppc-of.c | 6 ++---- drivers/usb/host/ohci-pxa27x.c | 5 ++--- drivers/usb/host/ohci-s3c2410.c | 5 ++--- drivers/usb/host/ohci-sm501.c | 6 ++---- drivers/usb/host/ohci-spear.c | 5 ++--- drivers/usb/host/ohci-st.c | 6 ++---- drivers/usb/host/oxu210hp-hcd.c | 6 ++---- drivers/usb/host/r8a66597-hcd.c | 5 ++--- drivers/usb/host/sl811-hcd.c | 5 ++--- drivers/usb/host/uhci-grlib.c | 6 ++---- drivers/usb/host/uhci-platform.c | 6 ++---- drivers/usb/host/xhci-histb.c | 6 ++---- drivers/usb/host/xhci-mtk.c | 6 ++---- drivers/usb/host/xhci-plat.c | 6 ++---- drivers/usb/host/xhci-tegra.c | 6 ++---- drivers/usb/isp1760/isp1760-if.c | 6 ++---- drivers/usb/misc/qcom_eud.c | 6 ++---- drivers/usb/misc/usb3503.c | 6 ++---- drivers/usb/renesas_usbhs/common.c | 6 ++---- drivers/usb/roles/intel-xhci-usb-role-switch.c | 6 ++---- drivers/usb/typec/mux/gpio-sbu-mux.c | 6 ++---- drivers/usb/typec/mux/intel_pmc_mux.c | 6 ++---- drivers/usb/typec/qcom-pmic-typec.c | 6 ++---- drivers/usb/typec/tcpm/tcpci_mt6360.c | 5 ++--- drivers/usb/typec/tcpm/tcpci_mt6370.c | 6 ++---- drivers/usb/typec/tcpm/wcove.c | 6 ++---- drivers/usb/typec/ucsi/ucsi_acpi.c | 6 ++---- drivers/usb/usbip/vhci_hcd.c | 6 ++---- 97 files changed, 199 insertions(+), 379 deletions(-) base-commit: ac9a78681b921877518763ba0e89202254349d1b