Commit d75fbc82 authored by Théo Lebrun's avatar Théo Lebrun Committed by Stephen Boyd
Browse files

clk: eyeq: require clock index with phandle in all cases



We used to let compatibles with a single clock exposed to not have
a cell. Switch away from that and enforce a cell in all cases.

This is done at the same time as some compatibles
(mobileye,eyeq6h-{central,west}-olb) go from one to more clocks
exposed. Let's do the same switch and avoid future devicetree
work if/when others follow.

Signed-off-by: default avatarThéo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20241106-mbly-clk-v2-4-84cfefb3f485@bootlin.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 4eb5e9c6
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -367,10 +367,6 @@ static int eqc_probe(struct platform_device *pdev)

	eqc_probe_init_divs(dev, data, base, cells);

	/* When providing a single clock, require no cell. */
	if (clk_count == 1)
		return of_clk_add_hw_provider(np, of_clk_hw_simple_get, cells->hws[0]);
	else
	return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, cells);
}

@@ -637,10 +633,6 @@ static void __init eqc_early_init(struct device_node *np,
		}
	}

	/* When providing a single clock, require no cell. */
	if (clk_count == 1)
		ret = of_clk_add_hw_provider(np, of_clk_hw_simple_get, cells->hws[0]);
	else
	ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, cells);
	if (ret) {
		pr_err("failed registering clk provider: %d\n", ret);