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

Commit 1472dfc5 authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

ARM: dts: msm: Correct the MSM8996V3 cpu clock device tree



The compatible string is missing the "qcom," prefix. Fix it.
Also, fix the early initcall DT check as well to correctly
bail out when a non-MSM8996 device is encountered.

Change-Id: I5c61ce6d7c7f9406ffad39f15a76891ba368bdae
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 65bdd3d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -258,7 +258,7 @@
};

&clock_cpu {
		qcom,compatible = "cpu-clock-8996-v3";
		compatible = "qcom,cpu-clock-8996-v3";
		/* Nominal FMAXes only until characterization completes. */
		qcom,pwrcl-speedbin0-v0 =
			<          0  0 >,
+6 −5
Original line number Diff line number Diff line
@@ -1265,15 +1265,16 @@ int __init cpu_clock_8996_early_init(void)
	u32 regval;
	struct device_node *ofnode;

	ofnode = of_find_compatible_node(NULL, NULL,
					 "qcom,cpu-clock-8996");
	if (!ofnode)
		return 0;

	ofnode = of_find_compatible_node(NULL, NULL,
					 "qcom,cpu-clock-8996-v3");
	if (ofnode)
		cpu_clocks_v3 = true;
	else {
		ofnode = of_find_compatible_node(NULL, NULL,
					 "qcom,cpu-clock-8996");
		if (!ofnode)
			return 0;
	}

	pr_info("clock-cpu-8996: configuring clocks for the perf cluster\n");