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

Commit 6ce975d0 authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

clk: qcom: clk-cpu-osm: Add additional check for SDMSHRIKE



The perfpcl clock isn't present on SDMSHRIKE. Avoid calling the
read_lut API for it.

Change-Id: Ide725f471bfff05251a87558ae40bda971ce593a
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 1252d8e6
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -1073,12 +1073,14 @@ static int clk_cpu_osm_driver_probe(struct platform_device *pdev)
		return rc;
	}

	if (!is_sdmshrike) {
		rc = clk_osm_read_lut(pdev, &perfpcl_clk);
		if (rc) {
			dev_err(&pdev->dev, "Unable to read OSM LUT for perf plus cluster, rc=%d\n",
				rc);
			return rc;
		}
	}

	spin_lock_init(&l3_clk.lock);
	spin_lock_init(&pwrcl_clk.lock);