From patchwork Mon Dec 12 21:43:52 2022 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: 13071467 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 53CBAC4332F for ; Mon, 12 Dec 2022 21:44:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233445AbiLLVoN (ORCPT ); Mon, 12 Dec 2022 16:44:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233346AbiLLVoF (ORCPT ); Mon, 12 Dec 2022 16:44:05 -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 326EB18B22 for ; Mon, 12 Dec 2022 13:44:04 -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 ) id 1p4qad-0008FE-GY; Mon, 12 Dec 2022 22:43:59 +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 ) id 1p4qab-0046cQ-Lm; Mon, 12 Dec 2022 22:43:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1p4qab-004bJI-Lk; Mon, 12 Dec 2022 22:43:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Tony Lindgren , Lee Jones Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH] mfd: twl4030-power: Drop empty platform remove function Date: Mon, 12 Dec 2022 22:43:52 +0100 Message-Id: <20221212214352.3776110-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1001; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=BzmOHIPwX22OuQ0j7QceFIwmWa5znnV1hu65LFP3ox8=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjl6CU7iVyCxC00llipkoCqDHfxObd2aeCr4wzYNnN S3SyVyOJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5eglAAKCRDB/BR4rcrsCQw1B/ 4iJxyAr7se/ctq384UOztRz2h46yEE/E2oujGbtCZEKWJ56kh0POCPpF2c5rUO2QLx2P4ksU9II+BN PKCxJ4mUQ56FwiCHRIyU4Rz5nmyjgMrFum/fET93OhsFfynqlfEQqYPcIOvI/EP2do2ISu1ePybcB6 xD9Uob6ulDQLB8Rglmx4uDxcuAkj6YIyAO0dqglYHG33VtwJkmFah04Ju+iPeoocW38fgBvuxac1BJ 7ZF8hrXULDPYYWVIZnDMTS1/gdV1kh6xoJlgwJ574JOtonlr44jqdoDiyakY7nxma8Q2UK9mM3pKrp H+q6eLs4eFWs1sLkNCRYkXRWzAM/bL 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-omap@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org A remove callback just returning 0 is equivalent to no remove callback at all. So drop the useless function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/twl4030-power.c | 6 ------ 1 file changed, 6 deletions(-) base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index 6b36932263ba..e35b0f788c50 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c @@ -953,18 +953,12 @@ static int twl4030_power_probe(struct platform_device *pdev) return err; } -static int twl4030_power_remove(struct platform_device *pdev) -{ - return 0; -} - static struct platform_driver twl4030_power_driver = { .driver = { .name = "twl4030_power", .of_match_table = of_match_ptr(twl4030_power_of_match), }, .probe = twl4030_power_probe, - .remove = twl4030_power_remove, }; module_platform_driver(twl4030_power_driver);