Commit 47f6cdd2 authored by Sean Paul's avatar Sean Paul

drm: Fix compilation error when CONFIG_DEBUG_FS is undefined

This patch fixes the following compilation error when CONFIG_DEBUG_FS is not defined.

../drivers/gpu/drm/drm_dp_helper.c: In function ‘drm_dp_aux_crc_work’:
../drivers/gpu/drm/drm_dp_helper.c:1029:13: error: ‘struct drm_crtc’ has no member named ‘crc’
../drivers/gpu/drm/drm_dp_helper.c:1031:12: error: ‘struct drm_crtc’ has no member named ‘crc’
  make[4]: *** [drivers/gpu/drm/drm_dp_helper.o] Error 1
  make[4]: *** Waiting for unfinished jobs....

Fixes: 79c1da7c ("drm/dp: add helpers for capture of frame CRCs")
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
parent 3190e58d
...@@ -776,6 +776,7 @@ struct drm_crtc { ...@@ -776,6 +776,7 @@ struct drm_crtc {
* Debugfs directory for this CRTC. * Debugfs directory for this CRTC.
*/ */
struct dentry *debugfs_entry; struct dentry *debugfs_entry;
#endif
/** /**
* @crc: * @crc:
...@@ -783,7 +784,6 @@ struct drm_crtc { ...@@ -783,7 +784,6 @@ struct drm_crtc {
* Configuration settings of CRC capture. * Configuration settings of CRC capture.
*/ */
struct drm_crtc_crc crc; struct drm_crtc_crc crc;
#endif
/** /**
* @fence_context: * @fence_context:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment