msm: kgsl: Don't spam the kernel log if qcom,step-pwrlevel isn't found
qcom,step-pwrlevel is a specific parameter that only applies to
certain targets. Don't spam the world if it isn't specified.
CRs-fixed: 556418
Change-Id: Ic0dedbad65dbdcf9bc227fef4a796e22131ba68f
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
diff --git a/drivers/gpu/msm/adreno.c b/drivers/gpu/msm/adreno.c
index b393b21..8c8cb01 100644
--- a/drivers/gpu/msm/adreno.c
+++ b/drivers/gpu/msm/adreno.c
@@ -1338,7 +1338,12 @@
&pdata->init_level))
pdata->init_level = 1;
- if (adreno_of_read_property(parent, "qcom,step-pwrlevel",
+ /*
+ * qcom,step-pwrlevel isn't required so don't spam the kernel log
+ * if it isn't found
+ */
+
+ if (of_property_read_u32(parent, "qcom,step-pwrlevel",
&pdata->step_mul))
pdata->step_mul = 1;