From patchwork Tue Dec 13 16:23:57 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: 13072198 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 7B368C4332F for ; Tue, 13 Dec 2022 16:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbiLMQYL (ORCPT ); Tue, 13 Dec 2022 11:24:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234940AbiLMQYK (ORCPT ); Tue, 13 Dec 2022 11:24:10 -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 96E88BF7 for ; Tue, 13 Dec 2022 08:24:09 -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 1p584b-00013R-Jl; Tue, 13 Dec 2022 17:24:05 +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 1p584Z-004Hou-Sz; Tue, 13 Dec 2022 17:24:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1p584Z-004orD-Ss; Tue, 13 Dec 2022 17:24:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Peter Kaestle , Hans de Goede , Mark Gross Cc: platform-driver-x86@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 1/3] platform/x86: acerhdf: Drop empty platform remove function Date: Tue, 13 Dec 2022 17:23:57 +0100 Message-Id: <20221213162359.651529-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221213162359.651529-1-u.kleine-koenig@pengutronix.de> References: <20221213162359.651529-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=962; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=uhsJ/1HGiBY9gbicwgCY68oXdBwmVW/9PxYPdzIU59U=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjmKcTz3OOX/xadDCb0FL9ziUiEHUMiDz2wcz64lgg EwS0DIyJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5inEwAKCRDB/BR4rcrsCfmxB/ 9Nh0A4fO+U9pPaZHaWW1wS8yLd7utVTvQS3S6k9qhJbB3VWpIyH0Kks95S8GTSesOennUFoj/4CMXB p2BhoKCuQcsYPPmTPM7H9yF8a2rLuswQ2cCZvBdenB9E5rcQjwOuKhmQ72VsQ4mDFZ4+hxToLAYG8z 5Ge9FwnulAJqPtFujfEglUcwzdSjj8v4ADL8V/iHF4AF9xIN0ShhXb+A8oaEBkAm+3bmUxUDc3WqUD vpY4uvDbdmlo+5LkaV/1BVONT9SFmEUau+yhl7k9XY0gDHalab+4iwcd85uynWTUqt8xXsAQp5LOlM AwFj6kBXVfhy2oWdwh1rtQ8qwheg85 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: platform-driver-x86@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@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 Acked-by: Peter Kaestle --- drivers/platform/x86/acerhdf.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c index d2c0fc38c201..ed49393d22ed 100644 --- a/drivers/platform/x86/acerhdf.c +++ b/drivers/platform/x86/acerhdf.c @@ -565,11 +565,6 @@ static int acerhdf_probe(struct platform_device *device) return 0; } -static int acerhdf_remove(struct platform_device *device) -{ - return 0; -} - static const struct dev_pm_ops acerhdf_pm_ops = { .suspend = acerhdf_suspend, .freeze = acerhdf_suspend, @@ -581,7 +576,6 @@ static struct platform_driver acerhdf_driver = { .pm = &acerhdf_pm_ops, }, .probe = acerhdf_probe, - .remove = acerhdf_remove, }; /* check hardware */ From patchwork Tue Dec 13 16:23:58 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: 13072199 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 6A00BC10F1B for ; Tue, 13 Dec 2022 16:24:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234940AbiLMQYN (ORCPT ); Tue, 13 Dec 2022 11:24:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235640AbiLMQYM (ORCPT ); Tue, 13 Dec 2022 11:24:12 -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 8E31CBF7 for ; Tue, 13 Dec 2022 08:24:11 -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 1p584b-00013S-SO; Tue, 13 Dec 2022 17:24:05 +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 1p584a-004Hox-2m; Tue, 13 Dec 2022 17:24:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1p584a-004orG-2V; Tue, 13 Dec 2022 17:24:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Hans de Goede , Mark Gross , =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Cc: platform-driver-x86@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 2/3] platform/x86: intel: oaktrail: Drop empty platform remove function Date: Tue, 13 Dec 2022 17:23:58 +0100 Message-Id: <20221213162359.651529-3-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221213162359.651529-1-u.kleine-koenig@pengutronix.de> References: <20221213162359.651529-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=911; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=QeCHVvR8aLgsxdVAHd0xh5qb7jlR0YsvXySGpb04hf8=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjmKcWCi+7RvJNnl6sBBPlKD0CDuvh2M32ciGLFV39 x5OSLMeJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5inFgAKCRDB/BR4rcrsCadFB/ 9lW11qX6e8qEbxHTX+gktgDSKEkduMPd0tRrflQ6u3WTei0Zj+t7ILK6OOBPgXdXriroFgWNPQtC1r 8ePaVVZ0ZuEW0KTI6eAtvau0jfwx38wIfiD+zRCAGVmCIDvHVIDeN1Vswkibt1MB/M0ROBiQMDL0J8 XbX10eSF9lK1hYVpMg7f2LKyvn6xXQWelZQwukbf9hYn3VxhgqLupfMUNNZ8NN+fxLOfkSAg74u8yM BQnF7rfnLAuk0nAieeIC6UqMd2YvRkaT78qAE43uz3L7gahmmnzB+DZzUti4bq3FZp+bxtupY2ssAv Zzz2Gw1eHxil3aO3PThu4INp74Fj+V 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: platform-driver-x86@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@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/platform/x86/intel/oaktrail.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/platform/x86/intel/oaktrail.c b/drivers/platform/x86/intel/oaktrail.c index 7c5c623630c1..fa720967e69b 100644 --- a/drivers/platform/x86/intel/oaktrail.c +++ b/drivers/platform/x86/intel/oaktrail.c @@ -266,17 +266,11 @@ static int oaktrail_probe(struct platform_device *pdev) return 0; } -static int oaktrail_remove(struct platform_device *pdev) -{ - return 0; -} - static struct platform_driver oaktrail_driver = { .driver = { .name = DRIVER_NAME, }, .probe = oaktrail_probe, - .remove = oaktrail_remove, }; static int dmi_check_cb(const struct dmi_system_id *id) From patchwork Tue Dec 13 16:23:59 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: 13072200 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 8B066C4332F for ; Tue, 13 Dec 2022 16:24:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235679AbiLMQYQ (ORCPT ); Tue, 13 Dec 2022 11:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235640AbiLMQYP (ORCPT ); Tue, 13 Dec 2022 11:24:15 -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 4F73EBF7 for ; Tue, 13 Dec 2022 08:24:14 -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 1p584c-00013T-K3; Tue, 13 Dec 2022 17:24:06 +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 1p584a-004Hp0-Cr; Tue, 13 Dec 2022 17:24:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1p584a-004orJ-8o; Tue, 13 Dec 2022 17:24:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Zha Qipeng , Hans de Goede , Mark Gross Cc: platform-driver-x86@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 3/3] platform/x86: intel: punit_ipc: Drop empty platform remove function Date: Tue, 13 Dec 2022 17:23:59 +0100 Message-Id: <20221213162359.651529-4-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221213162359.651529-1-u.kleine-koenig@pengutronix.de> References: <20221213162359.651529-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1089; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=Oqtr1ShuGnn0s4quLFzsA5XYsSbLKXxBI8mDvtbvgZ0=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjmKcZ3w9nUslOGAJ23cy0cCiTiOKfM04ZwVBt/y8A epdJofaJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5inGQAKCRDB/BR4rcrsCc34B/ 4sufiBYrxqlGcBrK72Sc+BXe7zmIKkG3cGG0MwosU1kzP2GtqlpfBqemCfkRnwO9eRxt6OHaoKf6ty yFYYhEfseZ4dyYyEM1lA+1uXR8Pxi9quzRjoKjnYJdpSPtBhHcdEF8pYjC6wFrx1JtvWkcc+1WwQuE V2ANBg1llQX75OPDpbCBnUlkBnkaSvF6N3Ffupz1AzHu38zlyR+oYP7TV6vSWPSKrdkMIGGsylG7Fs P0OrB1uWXi4IRoOpNwoMeAueS17XUd9eTJDIVcaV8kmIJVFTbhUGxVHK8rVGmnLx79SbfXyhpQaUkr WvCYdWIWiySllRy93l9bU4oZc9JF9T 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: platform-driver-x86@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@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/platform/x86/intel/punit_ipc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/platform/x86/intel/punit_ipc.c b/drivers/platform/x86/intel/punit_ipc.c index 66bb39fd0ef9..cd0ba84cc8e4 100644 --- a/drivers/platform/x86/intel/punit_ipc.c +++ b/drivers/platform/x86/intel/punit_ipc.c @@ -302,11 +302,6 @@ static int intel_punit_ipc_probe(struct platform_device *pdev) return 0; } -static int intel_punit_ipc_remove(struct platform_device *pdev) -{ - return 0; -} - static const struct acpi_device_id punit_ipc_acpi_ids[] = { { "INT34D4", 0 }, { } @@ -315,7 +310,6 @@ MODULE_DEVICE_TABLE(acpi, punit_ipc_acpi_ids); static struct platform_driver intel_punit_ipc_driver = { .probe = intel_punit_ipc_probe, - .remove = intel_punit_ipc_remove, .driver = { .name = "intel_punit_ipc", .acpi_match_table = punit_ipc_acpi_ids,