drm/msm/gpu: Fix check for devices without devfreq
authorRob Clark <robdclark@chromium.org>
Sat, 20 Nov 2021 20:01:02 +0000 (12:01 -0800)
committerRob Clark <robdclark@chromium.org>
Sun, 21 Nov 2021 20:56:51 +0000 (12:56 -0800)
commit5dbe2711e41818b5474d2119d075d2facc8533dc
treea9c62145b61fc9fc5b89be35275307da130872a2
parent26b6f1c870b81ce8a48751a21f363958d2c04cf2
drm/msm/gpu: Fix check for devices without devfreq

Looks like 658f4c829688 ("drm/msm/devfreq: Add 1ms delay before
clamping freq") was badly rebased on top of efb8a170a367 ("drm/msm:
Fix devfreq NULL pointer dereference on a3xx") and ended up with
the NULL check in the wrong place.

Fixes: 658f4c829688 ("drm/msm/devfreq: Add 1ms delay before clamping freq")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20211120200103.1051459-2-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gpu_devfreq.c