Move the apmixedsys compatible into the mt8188-clk of_match table and drop its separate U_BOOT_DRIVER entry.
It was only kept apart because it used different clk_ops. Now that all MediaTek clock drivers share mtk_clk_ops, its entry is identical to mt8188-clk apart from the of_match table. No functional change. Signed-off-by: David Lechner <[email protected]> --- drivers/clk/mediatek/clk-mt8188.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8188.c b/drivers/clk/mediatek/clk-mt8188.c index 7db5194f0a7..5a142f66faa 100644 --- a/drivers/clk/mediatek/clk-mt8188.c +++ b/drivers/clk/mediatek/clk-mt8188.c @@ -2063,15 +2063,11 @@ MTK_GATE_CLK_TREE(mt8188_vdo0_clk_tree, vdo0_clks, ext_clock_rates); MTK_GATE_CLK_TREE(mt8188_vdo1_clk_tree, vdo1_clks, ext_clock_rates); -static const struct udevice_id mt8188_apmixed_compat[] = { +static const struct udevice_id mt8188_clk_compat[] = { { .compatible = "mediatek,mt8188-apmixedsys", .data = (ulong)&mt8188_apmixedsys_clk_tree, }, - { } -}; - -static const struct udevice_id mt8188_clk_compat[] = { { .compatible = "mediatek,mt8188-topckgen", .data = (ulong)&mt8188_topckgen_clk_tree, @@ -2115,16 +2111,6 @@ static const struct udevice_id mt8188_clk_compat[] = { { } }; -U_BOOT_DRIVER(mt8188_clk_apmixedsys) = { - .name = "mt8188-apmixedsys", - .id = UCLASS_CLK, - .of_match = mt8188_apmixed_compat, - .probe = mtk_clk_probe, - .priv_auto = sizeof(struct mtk_clk_priv), - .ops = &mtk_clk_ops, - .flags = DM_FLAG_PRE_RELOC, -}; - U_BOOT_DRIVER(mt8188_clk) = { .name = "mt8188-clk", .id = UCLASS_CLK, -- 2.43.0
