aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/msm/adreno/a6xx_gmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
index 9155dafae2a9..38e2cfa9cec7 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
+++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
@@ -747,7 +747,7 @@ int a6xx_gmu_resume(struct a6xx_gpu *a6xx_gpu)
747 * will make sure that the refcounting is correct in case we need to 747 * will make sure that the refcounting is correct in case we need to
748 * bring down the GX after a GMU failure 748 * bring down the GX after a GMU failure
749 */ 749 */
750 if (!IS_ERR(gmu->gxpd)) 750 if (!IS_ERR_OR_NULL(gmu->gxpd))
751 pm_runtime_get(gmu->gxpd); 751 pm_runtime_get(gmu->gxpd);
752 752
753out: 753out:
@@ -863,7 +863,7 @@ int a6xx_gmu_stop(struct a6xx_gpu *a6xx_gpu)
863 * domain. Usually the GMU does this but only if the shutdown sequence 863 * domain. Usually the GMU does this but only if the shutdown sequence
864 * was successful 864 * was successful
865 */ 865 */
866 if (!IS_ERR(gmu->gxpd)) 866 if (!IS_ERR_OR_NULL(gmu->gxpd))
867 pm_runtime_put_sync(gmu->gxpd); 867 pm_runtime_put_sync(gmu->gxpd);
868 868
869 clk_bulk_disable_unprepare(gmu->nr_clocks, gmu->clocks); 869 clk_bulk_disable_unprepare(gmu->nr_clocks, gmu->clocks);
@@ -1234,7 +1234,7 @@ void a6xx_gmu_remove(struct a6xx_gpu *a6xx_gpu)
1234 1234
1235 pm_runtime_disable(gmu->dev); 1235 pm_runtime_disable(gmu->dev);
1236 1236
1237 if (!IS_ERR(gmu->gxpd)) { 1237 if (!IS_ERR_OR_NULL(gmu->gxpd)) {
1238 pm_runtime_disable(gmu->gxpd); 1238 pm_runtime_disable(gmu->gxpd);
1239 dev_pm_domain_detach(gmu->gxpd, false); 1239 dev_pm_domain_detach(gmu->gxpd, false);
1240 } 1240 }