[PATCH] clk: microchip: core: fix pointer being initialized twice.

From: Chen Changcheng

Date: Sun Dec 07 2025 - 22:26:52 EST


fix sparse warnings: (new ones prefixed by >>)
>> drivers/clk/microchip/clk-core.c:915:10: sparse: sparse: Initializer entry defined twice
drivers/clk/microchip/clk-core.c:919:10: sparse: also defined here

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202511222115.uvHrP95A-lkp@xxxxxxxxx/
Fixes: e9f039c08cdc ("clk: microchip: core: convert from round_rate() to determine_rate()")
Signed-off-by: Chen Changcheng <chenchangcheng@xxxxxxxxxx>
---
drivers/clk/microchip/clk-core.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/clk/microchip/clk-core.c b/drivers/clk/microchip/clk-core.c
index b34348d491f3..20f25d2db05d 100644
--- a/drivers/clk/microchip/clk-core.c
+++ b/drivers/clk/microchip/clk-core.c
@@ -916,7 +916,6 @@ const struct clk_ops pic32_sclk_ops = {
.set_rate = sclk_set_rate,
.recalc_rate = sclk_get_rate,
.init = sclk_init,
- .determine_rate = __clk_mux_determine_rate,
};

/* sclk with no slew and no post-divider */

base-commit: cc3ee4ba57b76deefb52aee5f57a46dc07bda9f7
prerequisite-patch-id: 6cc5a0ec0db4756cb95c5d67a3d27a57288fdaa7
--
2.25.1