Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7434531rwb; Mon, 12 Dec 2022 14:47:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6iXAUeLDzJvYSqWwn+nYVrYh0pHvsXsbiXhQhvax53zxCdyPBWbJmQiCbCoNCCda/ZcR7r X-Received: by 2002:a17:906:38c8:b0:7ba:5993:90e8 with SMTP id r8-20020a17090638c800b007ba599390e8mr14982407ejd.65.1670885248747; Mon, 12 Dec 2022 14:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670885248; cv=none; d=google.com; s=arc-20160816; b=RbYBh28GvVh5uUsKyhpr//R/J7FamZ0tdmMt4M0lHVz2VFTrS0OHrhjX8Vyv4m1JsS FMut3N3bIFSs8i0MLhnVYsHVwK+tXHb7/Lq9p24pkN4nLgwdjx3bUeaNPv2eQ2J/zM7A cr58I8+2h8NGRdpFoI67FTif8GfYTUcallBLZqffGTZibSozxiNN1Lrnu5R9c/6CFcm3 LDItTpH5bMd7B18R9PB1shWA6aF4XQnsSlMi5V/TD+wQONXfttnCX4T3qJNKSxlSfsFP s3NJmYJfw/tRtrdmitC1YFc1Oa1tyUdJKwZjcLjmmJWvc4lm9ubjLEDisP88mMHg1jqm GPow== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa16-20020a170907869000b007be1ba9fba1si6954941ejc.948.2022.12.12.14.47.10; Mon, 12 Dec 2022 14:47:28 -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 + 75 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=20Kleine-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 Content-Type: text/plain; charset=UTF-8 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 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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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/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, -- 2.38.1