drm/msm/a6xx: Don't enable GPU state code if dependencies are missing
authorJordan Crouse <jcrouse@codeaurora.org>
Wed, 10 Apr 2019 16:58:16 +0000 (10:58 -0600)
committerRob Clark <robdclark@chromium.org>
Sun, 21 Apr 2019 14:52:36 +0000 (07:52 -0700)
commitb02872df58aca66d0e7af3ec5065dbc6f0630dd1
tree43ee9969171994ebdc9f490aa97fc1e6546e781b
parentb55ee6b243bd2743b9cb20b6aa812091748c4304
drm/msm/a6xx: Don't enable GPU state code if dependencies are missing

Add CONFIG_DRM_MSM_GPU_STATE to conditionally compile Adreno GPU state
code depending on the availability of the dependencies.

Reported-by: Hulk Robot <hulkci@huawei.com>
Reported-by: YueHaibing <yuehaibing@huawei.com>
Fixes: 1707add81551 ("drm/msm/a6xx: Add a6xx gpu state")
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/Kconfig
drivers/gpu/drm/msm/Makefile
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/msm_debugfs.c