Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ed5f65b authored by Taniya Das's avatar Taniya Das Committed by Gerrit - the friendly Code Review server
Browse files

clk: msm: clock-cpu: Remove unused apc0 device node usage



apc0 device node is not referred for populating the frequency to voltage
mapping, so remove the code reference for the same.

Change-Id: I87ef10c16981bf105bb1b0d1f83b2d69387f9f98
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 782506b9
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -563,24 +563,9 @@ static void print_opp_table(int a53_pwr_cpu, int a53_perf_cpu)

static void populate_opp_table(struct platform_device *pdev)
{
	struct platform_device *apc0_dev;
	struct device_node *apc0_node;
	unsigned long apc0_fmax;
	int cpu, a53_pwr_cpu, a53_perf_cpu;

	apc0_node = of_parse_phandle(pdev->dev.of_node, "vdd-cl-supply",
								0);
	if (!apc0_node) {
		pr_err("can't find the apc0 dt node.\n");
		return;
	}

	apc0_dev = of_find_device_by_node(apc0_node);
	if (!apc0_dev) {
		pr_err("can't find the apc0 device node.\n");
		return;
	}

	apc0_fmax = a53_pwr_clk.c.fmax[a53_pwr_clk.c.num_fmax - 1];

	for_each_possible_cpu(cpu) {