diff options
author | Rob Clark <robdclark@chromium.org> | 2023-03-20 15:43:34 +0100 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-03-26 00:31:44 +0100 |
commit | 624831b3fa3b4f7bbcf526d1b8a125add432d04f (patch) | |
tree | 68eb9c527721c7dd42a78cf04ec07c4fb5dd05a7 /drivers | |
parent | drm/msm: Use idr_preload() (diff) | |
download | linux-624831b3fa3b4f7bbcf526d1b8a125add432d04f.tar.xz linux-624831b3fa3b4f7bbcf526d1b8a125add432d04f.zip |
drm/msm/gpu: Move fw loading out of hw_init() path
It is already a no-op, since we've already loaded the fw from
adreno_load_gpu(), so drop the redundant call.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/527849/
Link: https://lore.kernel.org/r/20230320144356.803762-13-robdclark@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c index d12f2f314022..2f70d0c3624e 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c @@ -503,16 +503,9 @@ struct drm_gem_object *adreno_fw_create_bo(struct msm_gpu *gpu, int adreno_hw_init(struct msm_gpu *gpu) { - struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu); - int ret, i; - VERB("%s", gpu->name); - ret = adreno_load_fw(adreno_gpu); - if (ret) - return ret; - - for (i = 0; i < gpu->nr_rings; i++) { + for (int i = 0; i < gpu->nr_rings; i++) { struct msm_ringbuffer *ring = gpu->rb[i]; if (!ring) |