Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1639397iob; Fri, 29 Apr 2022 09:29:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygx0IT1/SRdQB+7vnrMS/UQKrQ3UkmwOXhUO/xPcXv3O6LibeXJowCfP8YYfYCzHTIV1rO X-Received: by 2002:a05:6512:169e:b0:470:2124:63fb with SMTP id bu30-20020a056512169e00b00470212463fbmr22896lfb.616.1651249790555; Fri, 29 Apr 2022 09:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651249790; cv=none; d=google.com; s=arc-20160816; b=cgy11iZStnx9jvm2onqDOo0aQWWuMV26wq5YaZxrg77G4+dkYQovUc2jau9Vxn/Cf/ AR7qF398wX3HqfVdyuyNY1cTtbSVOAewzqGuCNWRBcw89DZPFMoa+O1DjA9vHDZu7yum SuuUnOb0WxvMUfKQ4kf5Pxsqv15YQqBaHOJgi/ynSJ2K2GMstprBiyNwRQQRM/A8xBJp uRda5VYbP5P+OwRBUeITfKh9IkHXwh73Pxm8krKC3HcbAwvDhJBN/D+Qth7uEGHRQ3Nb QS3xZy00O2o6yF84V6T1xcH2fQZBqMvH41BhdK6F2jFU857+gL3t6+bYrHDZ7yEd1FpT jlVg== 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 :dkim-signature; bh=a6zfJz346aBaj2yxZplNtQL3gGnZM9KfaGxNbLS3Hv8=; b=Z4xRVOaF7r6lVNcdtCEirS/LqrBLduA9Oao3KzqlbH/NyDbS+MvEaiO8DA6R74IgLg SCVNqal0O1ytvmB8IUzTrWGWt30ZKYsY/2pd+y53iMOZ/066GK8BgC1iSBkIt+O9eq6v yGrkbhJhArhFMJiCm5Q6U9ScdpEK30uD1agkKGDiZFh0eoc5U0Q3/a6f4qLRO5o1bgpS GfH/bKpzVs+grSS+xpC7hg5/cpWA4lUbblg1b2Zc6oN9Dyp4rg2/uC7/c5YxwVd6ugUs SpcSK5aSyM2TFQRlPDiMe121lbRnRjRoiOxdSFp3doZHMH+wpA5A5dO6dVFqtDCd/gV/ XN+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y3ixgwhg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a05651c055500b0024c79c3a37asi6585095ljp.17.2022.04.29.09.29.23; Fri, 29 Apr 2022 09:29:50 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y3ixgwhg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359269AbiD2MfM (ORCPT + 99 others); Fri, 29 Apr 2022 08:35:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359220AbiD2MfI (ORCPT ); Fri, 29 Apr 2022 08:35:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00986C90CA; Fri, 29 Apr 2022 05:31:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 92897621B7; Fri, 29 Apr 2022 12:31:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EE14C385B4; Fri, 29 Apr 2022 12:31:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651235509; bh=SR30SRUGpIrkdXGfxFhbhtwcmEyED8PObTGdvWsRM14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y3ixgwhgWJLEfARoa3da3astT6U/FbRks8z3kgcvOsg79q+rLvyJ2qKg2H5JdxeE+ gYDIMnLGHHZEx3y4taU3uC8mQSMtrItRW5MlajvOvP4ts/bsdxGqnksVcGEQxKgQ4K Qg7Xiwr9/Ajh5PA3IZZQEVDoV1oqbS8W2KnMOAnOIa2hfycJ6qzAAkN01oCCOYMzeD xH3LSsaTufCVdkEDblV1LZyWTDNkCcOnT3rXGylReSPEutZjHgVavYiDgkRKRZSv2y NSiLA1QuyxJ/naJb/PWVs284Rr0GzvCPJHIrunzxbPQtGwtPP7cUBBCh/GBowaiszc 741KnnTeixmgw== From: matthias.bgg@kernel.org To: mturquette@baylibre.com, sboyd@kernel.org Cc: allen-kh.cheng@mediatek.com, weiyi.lu@mediatek.com, chun-jie.chen@mediatek.com, linux-kernel@vger.kernel.org, ikjn@chromium.org, miles.chen@mediatek.com, robh+dt@kernel.org, linux-mediatek@lists.infradead.org, krzysztof.kozlowski+dt@linaro.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, angelogioacchino.delregno@collabora.com, Matthias Brugger Subject: [PATCH v2 2/2] clk: mediatek: Delete MT8192 msdc gate Date: Fri, 29 Apr 2022 14:31:32 +0200 Message-Id: <20220429123133.28869-3-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220429123133.28869-1-matthias.bgg@kernel.org> References: <20220429123133.28869-1-matthias.bgg@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Matthias Brugger The msdc gate is part of the MMC driver. Delete the not used code. Signed-off-by: Matthias Brugger Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: - add Reviewed-by tag drivers/clk/mediatek/clk-mt8192-msdc.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8192-msdc.c b/drivers/clk/mediatek/clk-mt8192-msdc.c index 87c3b79b79cf..635f7a0b629a 100644 --- a/drivers/clk/mediatek/clk-mt8192-msdc.c +++ b/drivers/clk/mediatek/clk-mt8192-msdc.c @@ -12,28 +12,15 @@ #include -static const struct mtk_gate_regs msdc_cg_regs = { - .set_ofs = 0xb4, - .clr_ofs = 0xb4, - .sta_ofs = 0xb4, -}; - static const struct mtk_gate_regs msdc_top_cg_regs = { .set_ofs = 0x0, .clr_ofs = 0x0, .sta_ofs = 0x0, }; -#define GATE_MSDC(_id, _name, _parent, _shift) \ - GATE_MTK(_id, _name, _parent, &msdc_cg_regs, _shift, &mtk_clk_gate_ops_no_setclr_inv) - #define GATE_MSDC_TOP(_id, _name, _parent, _shift) \ GATE_MTK(_id, _name, _parent, &msdc_top_cg_regs, _shift, &mtk_clk_gate_ops_no_setclr_inv) -static const struct mtk_gate msdc_clks[] = { - GATE_MSDC(CLK_MSDC_AXI_WRAP, "msdc_axi_wrap", "axi_sel", 22), -}; - static const struct mtk_gate msdc_top_clks[] = { GATE_MSDC_TOP(CLK_MSDC_TOP_AES_0P, "msdc_top_aes_0p", "aes_msdcfde_sel", 0), GATE_MSDC_TOP(CLK_MSDC_TOP_SRC_0P, "msdc_top_src_0p", "infra_msdc0_src", 1), @@ -52,11 +39,6 @@ static const struct mtk_gate msdc_top_clks[] = { GATE_MSDC_TOP(CLK_MSDC_TOP_AHB2AXI_BRG_AXI, "msdc_top_ahb2axi_brg_axi", "axi_sel", 14), }; -static const struct mtk_clk_desc msdc_desc = { - .clks = msdc_clks, - .num_clks = ARRAY_SIZE(msdc_clks), -}; - static const struct mtk_clk_desc msdc_top_desc = { .clks = msdc_top_clks, .num_clks = ARRAY_SIZE(msdc_top_clks), @@ -64,9 +46,6 @@ static const struct mtk_clk_desc msdc_top_desc = { static const struct of_device_id of_match_clk_mt8192_msdc[] = { { - .compatible = "mediatek,mt8192-msdc", - .data = &msdc_desc, - }, { .compatible = "mediatek,mt8192-msdc_top", .data = &msdc_top_desc, }, { -- 2.34.1