drm/msm: only register 'kms' debug file if KMS is used
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 9 Oct 2023 18:10:38 +0000 (21:10 +0300)
committerRob Clark <robdclark@chromium.org>
Mon, 9 Oct 2023 18:42:36 +0000 (11:42 -0700)
commitae13219e47d314b3bf7496b97983c22485e3627a
tree394f4396487187770f4ea8a5efd169789b1671f5
parenteedba1b3a7b4ed4040a9a21e5ce5ae268fc627c8
drm/msm: only register 'kms' debug file if KMS is used

There is little point in having the empty debugfs file which always
returns -ENODEV. Change this file to be created only if KMS is actually
used.

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