From patchwork Mon Dec 12 22:25:47 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: 32549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2502058wrr; Mon, 12 Dec 2022 14:33:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4TckVsn9Ru9SqJQuHu57NvXQ5RSBZzJgsRPvWFmHpjzpJPGyClPEyg7015ta/FqmemF0R2 X-Received: by 2002:a17:902:b603:b0:18f:aa25:46d with SMTP id b3-20020a170902b60300b0018faa25046dmr3893278pls.38.1670884392754; Mon, 12 Dec 2022 14:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670884392; cv=none; d=google.com; s=arc-20160816; b=B/mJnuqSMuSQ0IEqgGi2HbRqfzvpXWhXFf+/MsbOUOQ5nq3ig3w3WbAm3CJb6+DXIV ipSBkzztnoO5jMY5vpH1SRHBdQ/OwBc05MGJRgGwyb0L5GxPs9DfM+eaikLx6o5qelY6 F7/rQmyT++EmTmzqLgtSbMtNvbSokSodpQjVrLcKyzXLisl+yxcgAF4INKzOCbmaEpus /n335sraw//BIfmb6L2eDT557PvcMz+FiyRfiqyVLGyKHU9tb5tjyDoVpY/FKlI5jhJT GkutH2TdT7WO2K7IRltDl8c+b3TtK+OxSls++46Yzh3HC662iSp6VUm2031sd5gSL0Zv 0jAA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=COlC8sQTjXrbOfqbZegLtBt/QLi6r8lxu2GrtnJP0XQ=; b=WG6L2PzXrmLoyaHe7FVOOe4688ZsJwE8EtBJ5GQZnm7+aBpFSvsXlZZ7ufkt2agOdi e4PIhVpnumx5wStxLj/PXn2S7PMwkFIuANK5arQ587OI8hNq9eV+ir0itBiq/NpPMvU0 BmyZzDbxeH3HeIUIAOidIiHjCza1fDM1nNeXgX17isxMM6ymz37uRuRqRbnkbeVDqJr/ hvq5k2xBxJdfDtrgufg97biOWFQpXU2n+aOw9VI7qIYmdXyrE162+0xr9XR6pvbM/BXi cQ8TjA0CGjIB1tIVMuhDpYMFN/qT0vFiaikIJvt9/+yDUs1xV4z4jj/UZ0mpxqXI8MMH 11fA== 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 h8-20020a170902f54800b0018e06732699si8417930plf.237.2022.12.12.14.33.00; Mon, 12 Dec 2022 14:33:12 -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 S233752AbiLLW0I (ORCPT + 99 others); Mon, 12 Dec 2022 17:26:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233751AbiLLWZ6 (ORCPT ); Mon, 12 Dec 2022 17:25:58 -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 C7E891AA10 for ; Mon, 12 Dec 2022 14:25:57 -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 1p4rFA-0004ed-Aj; 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 ) id 1p4rF8-00477B-3Y; 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 ) id 1p4rF8-004boY-8L; Mon, 12 Dec 2022 23:25:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Florian Fainelli , Ray Jui , Scott Branden Cc: Broadcom internal kernel review list , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 1/3] soc: bcm: bcm2835-power: Drop empty platform remove function Date: Mon, 12 Dec 2022 23:25:47 +0100 Message-Id: <20221212222549.3779846-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221212222549.3779846-1-u.kleine-koenig@pengutronix.de> References: <20221212222549.3779846-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=847; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=YA9WoGHoY7R972abK95mgPE3N7JNtOTwwwX67OXM7D8=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjl6phLvpuJT7rc+GZCKmx/3Cghq6shy0PKwzjgBwu PON5wPCJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5eqYQAKCRDB/BR4rcrsCdYVB/ 4r7dxLFRFOBn+PPwI3rMvLE2OkSoNYxTOw9Js97zD/pPpczI6rlb+Otgc9w1oAFTvG91dxyKbcIc99 THwWbX2aORuFk5gGotUm6/aoQrZKCdVQQzVyJAGUtuLGehp29uOMjwSephYvNqLhiOa2aIMh44Z33r EtlBCWyZp5SDuEdfxKJE9diZRhUBkw1YgMRpW3ufomkeNqHKxkRZsBwo9OHEaDWKc4PQwvFjP/jrQG BNPSU7OnniZHMneb8nLHlbW41hzDdEvpJPWXBtY4KHLvEOJ9N1KDEFm/c8NOYW0aw9iOXqxVHjOSdR muXZunkIdeNepqzG6h9SHxGBjnF9Md 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-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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752049272941387654?= X-GMAIL-MSGID: =?utf-8?q?1752049272941387654?= 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/soc/bcm/bcm2835-power.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/soc/bcm/bcm2835-power.c b/drivers/soc/bcm/bcm2835-power.c index 5bcd047768b6..bf51f03f77d6 100644 --- a/drivers/soc/bcm/bcm2835-power.c +++ b/drivers/soc/bcm/bcm2835-power.c @@ -701,14 +701,8 @@ static int bcm2835_power_probe(struct platform_device *pdev) return ret; } -static int bcm2835_power_remove(struct platform_device *pdev) -{ - return 0; -} - static struct platform_driver bcm2835_power_driver = { .probe = bcm2835_power_probe, - .remove = bcm2835_power_remove, .driver = { .name = "bcm2835-power", }, From patchwork Mon Dec 12 22:25:48 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: 32550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2502107wrr; Mon, 12 Dec 2022 14:33:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jtLuVRTP9+exZZAlGt3ruX4JhHUJm296+hBLcQ/odL50m0cxg3hdmuC1E6G4/zBwJHUYw X-Received: by 2002:a17:906:2a8c:b0:78d:f454:3771 with SMTP id l12-20020a1709062a8c00b0078df4543771mr14223439eje.20.1670884400549; Mon, 12 Dec 2022 14:33:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670884400; cv=none; d=google.com; s=arc-20160816; b=jQ9OQGYyjGbgHM683V0UUFUV9w+T4NsWDyvAB/KQw+J7jSR2QCrz+kYIWZxrAyr5GB cHzsdCa/zVIDZHG1l2gP8MKEbpYzW0UFNqG5bXFlmRXHu0IH5CbabitDllztbH71QcXO Lb4wscI9p0IDeOADd8d5jvP7nGV+3WBHhnexfxO8d/ejRGTPqAuxbpOUrjFhkzMzBTUv swcoOzLW6o/cVfmIlu2amXyEaywBaZYAw5tYy+NPl24tLZq1CCb0RT9TNN/RMc0Fjsd8 gpcHUcMCADTUTEPZIhxyc/+9BXINq924Er84NkO1OUHTxqtTZV80k1Pg35tzSj8T0t3F Lu7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=mUF5g1VydiSw6zP+aDC8mUiprn8NUscm3ua89OyjMAM=; b=KEc9Dmiu12EMaJxTMBtH1rSlnFexsTyHHNq0IsTfJ5EaeH6SW5Yn35rhaBzZlDTpcF /PQSnZmCRu9jV3c2T1UlsOlc9AVeXnwWRcLeZfFm5QmgB3myc02E2Pf4WquYhjZy1wst y6torG7aD51crNUVbbMujdADAjNX5eQnL1XC40gezuNnU8/4t8ALA1P1n5Yb6A9E6jLg kzV7kV8iS4JWb9wnLmvoQA9GW2vApw3ycz657PCpfb7JhIavPgt8a6XK2Y5T8aD4Wb2N KYgvNX6ep9aDIVmFZ5sp/lguETZ98xo6gSIkv2iM35P3G5R0NI5TGgCXeulWaYbZEwKN QG0w== 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 mp16-20020a1709071b1000b007330c08fe49si6499805ejc.206.2022.12.12.14.32.54; Mon, 12 Dec 2022 14:33:20 -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 S233142AbiLLW0F (ORCPT + 99 others); Mon, 12 Dec 2022 17:26:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233749AbiLLWZ6 (ORCPT ); Mon, 12 Dec 2022 17:25:58 -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 8404D1ADA2 for ; Mon, 12 Dec 2022 14:25:56 -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 1p4rF9-0004eg-QK; Mon, 12 Dec 2022 23:25:51 +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 1p4rF8-00477F-D6; Mon, 12 Dec 2022 23:25:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1p4rF8-004bob-Fk; Mon, 12 Dec 2022 23:25:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 2/3] soc: mediatek: mutex: Drop empty platform remove function Date: Mon, 12 Dec 2022 23:25:48 +0100 Message-Id: <20221212222549.3779846-3-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221212222549.3779846-1-u.kleine-koenig@pengutronix.de> References: <20221212222549.3779846-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1077; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=WGfUhoni8vWurjVU/pKwNFMNSVOT2a39AD+uC/+5ko8=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjl6pkZQAZnNlqbmONBIaCu/XATKlD66kBisINCbtk fPKjji+JATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5eqZAAKCRDB/BR4rcrsCfqTB/ 9eNg97mvFGrIFx70h4TjtfmfUC4O0jZLQfvxO0iG9ECJZaSyNhENtLB+uRn0qiqcgtTq+2gkXsKy7P 3tcpcniSbfioCbY0AvBpMs8sSTLsNRaFFe3NO9lmcA/gixUK5HvT3eZMlA1lWvxzpj6p0VxKmFQtVJ fA6J+7kPOEiPFCfXK2tsBeRkWRcd35JuXbMoocD7Jk7WGSLBL09JyXTx8tQeK2PfLRxJDn9usQjbGu dVSHIVOkTuD4mkkWnPYEJ/ZLE9uiCAtLegaYIyzKJuej+o1oU5wCJG0K2V2PEkudjiDAsIa03baIuh K7aoPrXsb2HQG0JeOgr7IF7F/P7kMt 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-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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752049281268117459?= X-GMAIL-MSGID: =?utf-8?q?1752049281268117459?= 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 Reviewed-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mtk-mutex.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c index c1a33d52038e..85f7fd67d7c6 100644 --- a/drivers/soc/mediatek/mtk-mutex.c +++ b/drivers/soc/mediatek/mtk-mutex.c @@ -832,11 +832,6 @@ static int mtk_mutex_probe(struct platform_device *pdev) return 0; } -static int mtk_mutex_remove(struct platform_device *pdev) -{ - return 0; -} - static const struct of_device_id mutex_driver_dt_match[] = { { .compatible = "mediatek,mt2701-disp-mutex", .data = &mt2701_mutex_driver_data}, @@ -866,7 +861,6 @@ MODULE_DEVICE_TABLE(of, mutex_driver_dt_match); static struct platform_driver mtk_mutex_driver = { .probe = mtk_mutex_probe, - .remove = mtk_mutex_remove, .driver = { .name = "mediatek-mutex", .owner = THIS_MODULE, From patchwork Mon Dec 12 22:25:49 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: 32548 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2501786wrr; Mon, 12 Dec 2022 14:32:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MFPqUN7CAE+U2Yksb6GzUBiELpGQ/K8CAw4gt6Xw+RNaA2zWnFjb8F93y6gcOVZIRvFu3 X-Received: by 2002:a05:6a20:c192:b0:a9:ef6a:81af with SMTP id bg18-20020a056a20c19200b000a9ef6a81afmr23708739pzb.13.1670884358260; Mon, 12 Dec 2022 14:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670884358; cv=none; d=google.com; s=arc-20160816; b=Dou+MfGoyoII5XIuz04x3IJcqzVYnfyUqhpmMfHjFpxb3MrapvAeNr2QZKSozyQxyI zcfO1sxv1q+YXmOPEgtcMiy2OixIoYYcLRQLsAgKEVmpCmPmmgVsLkZS3X1OQgAq8KIu /dhTGw463DTYIb3Ynp8OhiVn++dOGIwvlxWIdu4Ray4tgis2qPBkQmOXBQjr5LsCP2Jw 8+EvnKvSA3W0Dgn/Y/Af8qY69NsVWLGbYG1dmdDOYBw5bcJfaNPrdtx9deIuaNluMkMr 2qHKqDG2YhBr0V4kVv7+n68uNZuGFadADb1PetvHOD1Oyv7Kk6Oiwn7KxP5RGNWtOvM9 i+Ug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VwHBtStHvvxlZklMBlvdkrzIc5xx+5degmb8AW3uOvI=; b=zIUDvGDg0NWXYNuNBEM/Q1aC1WMED6q0TfuWpWfDkSaxh2/4xsrYbKHqfABgsPhjz0 WrjyDiN4ES7LCE2rTLvk+eF3UHCgtHH3Nwmh17POMEXjlyBGxLYY5v6bAmHlfNyfzxvI zms0hZ9U3SHWMggyJQTFZbRtNOORwjMMJH9qi8QB84+yuxxi1gdYC6+iURTERWs9PM2g AnJaPfBqJkQG0J5b3mR2i7MYmLBnqiPLFt1EkAiXpzXqUFZjdtiLhd1SbXjBEHMpgh5n FJRZ7pYaxR6JnhuLmzDL37DJrTDGbWvzAJ1yClOG+b6dUOhLj2kue1sPXk2oeDfqvxbj m4BA== 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 c20-20020a6566d4000000b0047813915b38si8686595pgw.767.2022.12.12.14.32.23; Mon, 12 Dec 2022 14:32:38 -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 S233754AbiLLW0C (ORCPT + 99 others); Mon, 12 Dec 2022 17:26:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233744AbiLLWZ5 (ORCPT ); Mon, 12 Dec 2022 17:25:57 -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 EDC521AD87 for ; Mon, 12 Dec 2022 14:25:55 -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 1p4rFA-0004ep-8k; 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 ) id 1p4rF8-00477I-Rm; Mon, 12 Dec 2022 23:25:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1p4rF8-004bof-Ty; Mon, 12 Dec 2022 23:25:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Thierry Reding , Jonathan Hunter Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 3/3] soc: tegra: cbb: Drop empty platform remove function Date: Mon, 12 Dec 2022 23:25:49 +0100 Message-Id: <20221212222549.3779846-4-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221212222549.3779846-1-u.kleine-koenig@pengutronix.de> References: <20221212222549.3779846-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1137; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=y71smcDSlNK7gPTiR3iEOCLuDBdlfbnrdjyqfWwTI/o=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBjl6pnz3ifx3C0R/Ble0taw1B/viUTPgVfHgrbpybV HXHTJ6+JATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY5eqZwAKCRDB/BR4rcrsCS0sB/ 9St3UDbCfHoLl3o6HI9IQQTovtNGpnBJ3vFhjuU8asQevIAjnbA090XdVSmEDwQbp5NRhN7ThDqUqS +S9SpWIH5Xb6tI0n+zIkOuSaqGvaMRczT5eJZMLY+mqGUv4+S8dnvEuH5zJE9JAndy926kkxG8tiKS BDPdfabKFu3ZPmQLU/lh6mr5w+gltTMR8UZQTT8rydbT1VnYdn8hoepi75zr+oqLE0cF4vctSsm62j fR7l1jEFnzmKf6JUm+1LhvNLYvriSKkZYORCkrEB5SqERPMwd0PJ3EB8c1ZUGEGVtxaul18XlQB+v3 YXg+gDTDzHWR7NREjm048z4YsI2gsg 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-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=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752049236907131718?= X-GMAIL-MSGID: =?utf-8?q?1752049236907131718?= 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 Reviewed-by: Sumit Gupta --- drivers/soc/tegra/cbb/tegra234-cbb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/soc/tegra/cbb/tegra234-cbb.c b/drivers/soc/tegra/cbb/tegra234-cbb.c index 3528f9e15d5c..3b26dcf9a70c 100644 --- a/drivers/soc/tegra/cbb/tegra234-cbb.c +++ b/drivers/soc/tegra/cbb/tegra234-cbb.c @@ -1066,11 +1066,6 @@ static int tegra234_cbb_probe(struct platform_device *pdev) return tegra_cbb_register(&cbb->base); } -static int tegra234_cbb_remove(struct platform_device *pdev) -{ - return 0; -} - static int __maybe_unused tegra234_cbb_resume_noirq(struct device *dev) { struct tegra234_cbb *cbb = dev_get_drvdata(dev); @@ -1088,7 +1083,6 @@ static const struct dev_pm_ops tegra234_cbb_pm = { static struct platform_driver tegra234_cbb_driver = { .probe = tegra234_cbb_probe, - .remove = tegra234_cbb_remove, .driver = { .name = "tegra234-cbb", .of_match_table = tegra234_cbb_dt_ids,