]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Always include the debugfs dentry in drm_crtc
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Dec 2021 19:37:53 +0000 (21:37 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Dec 2021 20:46:33 +0000 (22:46 +0200)
commit393b5be9e0fcc698e05f669aa986e11e0c249a1c
tree6c05c94db7bdb9ebce747ba34b6e19a463950a1e
parent0050d982e76f40101a9b4bd982929845c43661f4
drm: Always include the debugfs dentry in drm_crtc

Remove the counterproductive CONFIG_DEBUG_FS ifdef and just include
the debugfs dentry in drm_crtc always. This way we don't need
annoying ifdefs in the actual code with DEBUGFS=n. Also we don't
have these ifdefs around any of the other debugfs dentries either
so can't see why drm_crtc should be special.

This fixes the i915 DEBUGFS=n build because I assumed the dentry
would always be there.

Cc: Jani Nikula <jani.nikula@intel.com>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Fixes: d57bc4ecadc0 ("drm/i915/fbc: Register per-crtc debugfs files")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211221193754.12287-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
include/drm/drm_crtc.h