Skip to content

Commit 9ac1eaf

Browse files
committed
clk: mediatek: Remove ifr{0,1}_cfg_regs structures
These aren't used and the macros that reference them aren't used either. Remove the dead code to avoid compile warnings. Cc: Owen Chen <[email protected]> Cc: Mars Cheng <[email protected]> Cc: Macpaul Lin <[email protected]> Fixes: 1aca993 ("clk: mediatek: Add MT6765 clock support") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 45edc7e commit 9ac1eaf

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

drivers/clk/mediatek/clk-mt6765.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -534,18 +534,6 @@ static const struct mtk_gate top_clks[] = {
534534
GATE_TOP2(CLK_TOP_APLL12_DIV3, "apll12_div3", "aud_1_ck", 5),
535535
};
536536

537-
static const struct mtk_gate_regs ifr0_cg_regs = {
538-
.set_ofs = 0x200,
539-
.clr_ofs = 0x200,
540-
.sta_ofs = 0x200,
541-
};
542-
543-
static const struct mtk_gate_regs ifr1_cg_regs = {
544-
.set_ofs = 0x74,
545-
.clr_ofs = 0x74,
546-
.sta_ofs = 0x74,
547-
};
548-
549537
static const struct mtk_gate_regs ifr2_cg_regs = {
550538
.set_ofs = 0x80,
551539
.clr_ofs = 0x84,
@@ -570,24 +558,6 @@ static const struct mtk_gate_regs ifr5_cg_regs = {
570558
.sta_ofs = 0xc8,
571559
};
572560

573-
#define GATE_IFR0(_id, _name, _parent, _shift) { \
574-
.id = _id, \
575-
.name = _name, \
576-
.parent_name = _parent, \
577-
.regs = &ifr0_cg_regs, \
578-
.shift = _shift, \
579-
.ops = &mtk_clk_gate_ops_no_setclr_inv, \
580-
}
581-
582-
#define GATE_IFR1(_id, _name, _parent, _shift) { \
583-
.id = _id, \
584-
.name = _name, \
585-
.parent_name = _parent, \
586-
.regs = &ifr1_cg_regs, \
587-
.shift = _shift, \
588-
.ops = &mtk_clk_gate_ops_no_setclr, \
589-
}
590-
591561
#define GATE_IFR2(_id, _name, _parent, _shift) { \
592562
.id = _id, \
593563
.name = _name, \

0 commit comments

Comments
 (0)