• Arnd Bergmann's avatar
    drm/msm: fix building without debugfs · 288e5c88
    Arnd Bergmann authored
    The adreno driver stopped building when CONFIG_DEBUGFS is disabled:
    
    drivers/gpu/drm/msm/adreno/adreno_device.c: In function 'adreno_load_gpu':
    drivers/gpu/drm/msm/adreno/adreno_device.c:153:16: error: 'const struct msm_gpu_funcs' has no member named 'debugfs_init'
      if (gpu->funcs->debugfs_init) {
                    ^~
    drivers/gpu/drm/msm/adreno/adreno_device.c:154:13: error: 'const struct msm_gpu_funcs' has no member named 'debugfs_init'
       gpu->funcs->debugfs_init(gpu, dev->primary);
                 ^~
    
    This adds an #ifdef around the code that references the hidden
    pointer.
    
    Fixes: 331dc0bc ("drm/msm: add a5xx specific debugfs")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    288e5c88
adreno_device.c 8.09 KB