Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: fixed: Remove Allwinner A10 special-case logic

This compatible is part of the legacy sunxi clock support, and has not
been used since commit 6b48644b1d29 ("ARM: gr8: Convert to CCU") in
October 2016. Since supporting this compatible adds some overhead to
generic clock code, let's clean it up.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220531051742.43273-1-samuel@sholland.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Samuel Holland and committed by
Stephen Boyd
c33ed612 f2906aa8

+1 -10
+1 -10
drivers/clk/clk-fixed-factor.c
··· 210 210 EXPORT_SYMBOL_GPL(devm_clk_hw_register_fixed_factor); 211 211 212 212 #ifdef CONFIG_OF 213 - static const struct of_device_id set_rate_parent_matches[] = { 214 - { .compatible = "allwinner,sun4i-a10-pll3-2x-clk" }, 215 - { /* Sentinel */ }, 216 - }; 217 - 218 213 static struct clk_hw *_of_fixed_factor_clk_setup(struct device_node *node) 219 214 { 220 215 struct clk_hw *hw; 221 216 const char *clk_name = node->name; 222 - unsigned long flags = 0; 223 217 u32 div, mult; 224 218 int ret; 225 219 ··· 231 237 232 238 of_property_read_string(node, "clock-output-names", &clk_name); 233 239 234 - if (of_match_node(set_rate_parent_matches, node)) 235 - flags |= CLK_SET_RATE_PARENT; 236 - 237 240 hw = __clk_hw_register_fixed_factor(NULL, node, clk_name, NULL, 0, 238 - flags, mult, div, false); 241 + 0, mult, div, false); 239 242 if (IS_ERR(hw)) { 240 243 /* 241 244 * Clear OF_POPULATED flag so that clock registration can be