diff options
-rw-r--r-- | drivers/cpufreq/qcom-cpufreq-kryo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq-kryo.c b/drivers/cpufreq/qcom-cpufreq-kryo.c index 01bddacf5c3b..29389accf3e9 100644 --- a/drivers/cpufreq/qcom-cpufreq-kryo.c +++ b/drivers/cpufreq/qcom-cpufreq-kryo.c | |||
@@ -87,8 +87,8 @@ static int qcom_cpufreq_kryo_probe(struct platform_device *pdev) | |||
87 | int ret; | 87 | int ret; |
88 | 88 | ||
89 | cpu_dev = get_cpu_device(0); | 89 | cpu_dev = get_cpu_device(0); |
90 | if (NULL == cpu_dev) | 90 | if (!cpu_dev) |
91 | ret = -ENODEV; | 91 | return -ENODEV; |
92 | 92 | ||
93 | msm8996_version = qcom_cpufreq_kryo_get_msm_id(); | 93 | msm8996_version = qcom_cpufreq_kryo_get_msm_id(); |
94 | if (NUM_OF_MSM8996_VERSIONS == msm8996_version) { | 94 | if (NUM_OF_MSM8996_VERSIONS == msm8996_version) { |
@@ -97,8 +97,8 @@ static int qcom_cpufreq_kryo_probe(struct platform_device *pdev) | |||
97 | } | 97 | } |
98 | 98 | ||
99 | np = dev_pm_opp_of_get_opp_desc_node(cpu_dev); | 99 | np = dev_pm_opp_of_get_opp_desc_node(cpu_dev); |
100 | if (IS_ERR(np)) | 100 | if (!np) |
101 | return PTR_ERR(np); | 101 | return -ENOENT; |
102 | 102 | ||
103 | ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu"); | 103 | ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu"); |
104 | if (!ret) { | 104 | if (!ret) { |