Skip to content

Commit c33ed61

Browse files
smaeulbebarino
authored andcommitted
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 6b48644 ("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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent f2906aa commit c33ed61

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

drivers/clk/clk-fixed-factor.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,10 @@ struct clk_hw *devm_clk_hw_register_fixed_factor(struct device *dev,
210210
EXPORT_SYMBOL_GPL(devm_clk_hw_register_fixed_factor);
211211

212212
#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-
218213
static struct clk_hw *_of_fixed_factor_clk_setup(struct device_node *node)
219214
{
220215
struct clk_hw *hw;
221216
const char *clk_name = node->name;
222-
unsigned long flags = 0;
223217
u32 div, mult;
224218
int ret;
225219

@@ -237,11 +231,8 @@ static struct clk_hw *_of_fixed_factor_clk_setup(struct device_node *node)
237231

238232
of_property_read_string(node, "clock-output-names", &clk_name);
239233

240-
if (of_match_node(set_rate_parent_matches, node))
241-
flags |= CLK_SET_RATE_PARENT;
242-
243234
hw = __clk_hw_register_fixed_factor(NULL, node, clk_name, NULL, 0,
244-
flags, mult, div, false);
235+
0, mult, div, false);
245236
if (IS_ERR(hw)) {
246237
/*
247238
* Clear OF_POPULATED flag so that clock registration can be

0 commit comments

Comments
 (0)