drm/msm: don't create GPU-related debugfs files with no GPU present
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 10 Oct 2023 05:54:25 +0000 (08:54 +0300)
committerRob Clark <robdclark@chromium.org>
Tue, 21 Nov 2023 02:31:42 +0000 (18:31 -0800)
commitf6afe4f09f6605b725b39670b3568ab2927c9b43
tree5cf2ef22ebd8034e3e8bd1cf37107ab70a0d5e7f
parent12578c075f89d6bd1b8af21751fbc2e1f78d2ce0
drm/msm: don't create GPU-related debugfs files with no GPU present

If there is no GPU present, skip creation of the GPU-related debugfs
files, making the MSM's debugfs more usable.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/561742/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_debugfs.c
drivers/gpu/drm/msm/msm_rd.c