Skip to content

Commit 1b83ad9

Browse files
mbggbebarino
authored andcommitted
clk: mediatek: Delete MT8192 msdc gate
The msdc gate is part of the MMC driver. Delete the not used code. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Miles Chen <miles.chen@mediatek.com> Link: https://lore.kernel.org/r/20220523102339.21927-3-matthias.bgg@kernel.org Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 1be3b43 commit 1b83ad9

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

drivers/clk/mediatek/clk-mt8192-msdc.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,15 @@
1212

1313
#include <dt-bindings/clock/mt8192-clk.h>
1414

15-
static const struct mtk_gate_regs msdc_cg_regs = {
16-
.set_ofs = 0xb4,
17-
.clr_ofs = 0xb4,
18-
.sta_ofs = 0xb4,
19-
};
20-
2115
static const struct mtk_gate_regs msdc_top_cg_regs = {
2216
.set_ofs = 0x0,
2317
.clr_ofs = 0x0,
2418
.sta_ofs = 0x0,
2519
};
2620

27-
#define GATE_MSDC(_id, _name, _parent, _shift) \
28-
GATE_MTK(_id, _name, _parent, &msdc_cg_regs, _shift, &mtk_clk_gate_ops_no_setclr_inv)
29-
3021
#define GATE_MSDC_TOP(_id, _name, _parent, _shift) \
3122
GATE_MTK(_id, _name, _parent, &msdc_top_cg_regs, _shift, &mtk_clk_gate_ops_no_setclr_inv)
3223

33-
static const struct mtk_gate msdc_clks[] = {
34-
GATE_MSDC(CLK_MSDC_AXI_WRAP, "msdc_axi_wrap", "axi_sel", 22),
35-
};
36-
3724
static const struct mtk_gate msdc_top_clks[] = {
3825
GATE_MSDC_TOP(CLK_MSDC_TOP_AES_0P, "msdc_top_aes_0p", "aes_msdcfde_sel", 0),
3926
GATE_MSDC_TOP(CLK_MSDC_TOP_SRC_0P, "msdc_top_src_0p", "infra_msdc0_src", 1),
@@ -52,21 +39,13 @@ static const struct mtk_gate msdc_top_clks[] = {
5239
GATE_MSDC_TOP(CLK_MSDC_TOP_AHB2AXI_BRG_AXI, "msdc_top_ahb2axi_brg_axi", "axi_sel", 14),
5340
};
5441

55-
static const struct mtk_clk_desc msdc_desc = {
56-
.clks = msdc_clks,
57-
.num_clks = ARRAY_SIZE(msdc_clks),
58-
};
59-
6042
static const struct mtk_clk_desc msdc_top_desc = {
6143
.clks = msdc_top_clks,
6244
.num_clks = ARRAY_SIZE(msdc_top_clks),
6345
};
6446

6547
static const struct of_device_id of_match_clk_mt8192_msdc[] = {
6648
{
67-
.compatible = "mediatek,mt8192-msdc",
68-
.data = &msdc_desc,
69-
}, {
7049
.compatible = "mediatek,mt8192-msdc_top",
7150
.data = &msdc_top_desc,
7251
}, {

0 commit comments

Comments
 (0)