Message ID | 20221212222549.3779846-1-u.kleine-koenig@pengutronix.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2502194wrr; Mon, 12 Dec 2022 14:33:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OWKUEjJ4UR0Onm+Iro95Fb8wJyYHgCAxDb1TUOXIbM0szmeeTJufU7s13TxZ/Exd5ZWHz X-Received: by 2002:a05:6a20:b042:b0:a9:ec2a:1013 with SMTP id dx2-20020a056a20b04200b000a9ec2a1013mr18669666pzb.56.1670884416204; Mon, 12 Dec 2022 14:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670884416; cv=none; d=google.com; s=arc-20160816; b=N7ZBx4jbqrmNO9cuwRIGMtR7HNKL6cAaGzwGyEaAbu42W7yBqF6FZEfzYC1nDpHpAd NYEVy4Efb5LpxgINbh+TbUwUdysHL+esUMnF2Z4GUUpFnff/gp2l+6GIqgFVbWxzMGgM S/OGeHyoZQlSS5IT2riqimDuzPhx/nzVnYndEPJ9cunROmN5sP23Sd5/0e1cwF5KzvL2 9A0e2VBvxH2LRwFIIyii8CCrGKl0iwTCGupDDwSwuImSTTN4jTEMTpu2fpfrY7sUatnn z1kCBBBUkhlGnWbPkMtdJEhbYa1Z2kkHWFTDrG0DdDT3QyEmA2RSZmRLfJUjdOzHSAeZ QOiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Cnsv7PhcVKxPeApzW0FUhCEbA9Nl3K7Di68vjzhgTUM=; b=Rh+yfge7bUnHiwbt3InqeHeEQwkmKDmJudVggkGBh1XdjOSeNhaOWn42VlAlQoBwpT +kbcCT2nb1K7/PZ0w+lnXYaTtHVmA8q/h8Q1ytgaSD37gsDojyI5+vPp0iqvISd9JniX nNDq72bJWBC/BOm08rNnY3zPqeGc8uLThsDizhRnB+fxOfcs/V4E5Yg+n0CLN2IuDT8F bEOGvCW4yUxi7MHbYFLPsih6gqqv32/mVzmVhwz1C2vgNhXQWtLdo7HwVvT1P+eQn6eL vLQeFqIkTKolCL0v16L/69pMcmW6lgE22kiVotG2URsfSzP6bwMuI8gBaNRdrrEegIEn DhuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y191-20020a638ac8000000b004786b79642esi10767688pgd.649.2022.12.12.14.33.22; Mon, 12 Dec 2022 14:33:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233765AbiLLW0L (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Mon, 12 Dec 2022 17:26:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233753AbiLLW0A (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Dec 2022 17:26:00 -0500 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 17B4019C3F for <linux-kernel@vger.kernel.org>; Mon, 12 Dec 2022 14:26:00 -0800 (PST) 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 <ukl@pengutronix.de>) id 1p4rFA-0004ea-BO; Mon, 12 Dec 2022 23:25:52 +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 <ukl@pengutronix.de>) id 1p4rF7-004777-Rd; Mon, 12 Dec 2022 23:25:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ukl@pengutronix.de>) id 1p4rF7-004boV-Vk; Mon, 12 Dec 2022 23:25:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de> To: Florian Fainelli <f.fainelli@gmail.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com> Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Matthias Brugger <matthias.bgg@gmail.com>, linux-mediatek@lists.infradead.org, linux-tegra@vger.kernel.org Subject: [PATCH 0/3] soc: Drop empty platform remove function Date: Mon, 12 Dec 2022 23:25:46 +0100 Message-Id: <20221212222549.3779846-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=903; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=9Yqk7LGk8vsN1xLwr87+BsL2JAMEBNXdS9ZNHOAdVxM=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjl6peqTXm1Zx9NKzokMGKZQZSwYOUvxD/gnhcUpA/ UQjbZzqJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5eqXgAKCRDB/BR4rcrsCaK1B/ 4oIK1BL6SDADD6LcuQe6Vsa6aKJmXXgR3STJ4wsSKPXnYiCAC/9THyfxl8k2xY1pz76wXoGGpsv3n6 nx/FwuiOJvQMLSaq7cikPEXGBM9KLDUEb16XsRoG0iniCd38O2eORUQEHsChm0McPvqgQbBmccJA1w 4wULbfw28dt9LwvXTHkSLNET79AidBbXCrktJIe1LO4OatyB/N/8t7VcLlryAW48jTn2Nz/Kv/KWWw xmzyct/oVFDgC1LB+pO8L33gWeSlWsnbzQxSn/ERJDlfModX0FhRGGmaP6aUuRxeT7butXbwlOBj30 imqj5ub3nTf8Gw1G4yN5MKRpufu8iA 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.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752049297776904918?= X-GMAIL-MSGID: =?utf-8?q?1752049297776904918?= |
Series |
soc: Drop empty platform remove function
|
|
Message
Uwe Kleine-König
Dec. 12, 2022, 10:25 p.m. UTC
Hello, this patch series removes all platform remove functions that only return zero below drivers/soc. There is no reason to have these, as the only caller is platform core code doing: if (drv->remove) { int ret = drv->remove(dev); if (ret) dev_warn(...) } (in platform_remove()) and so having no remove function is both equivalent and simpler. Best regards Uwe Uwe Kleine-König (3): soc: bcm: bcm2835-power: Drop empty platform remove function soc: mediatek: mutex: Drop empty platform remove function soc: tegra: cbb: Drop empty platform remove function drivers/soc/bcm/bcm2835-power.c | 6 ------ drivers/soc/mediatek/mtk-mutex.c | 6 ------ drivers/soc/tegra/cbb/tegra234-cbb.c | 6 ------ 3 files changed, 18 deletions(-) base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476