diff options
author | Jani Nikula <jani.nikula@intel.com> | 2021-08-30 15:53:43 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-10-01 13:45:33 +0300 |
commit | fd71fc38da7d5d59e12657c8f2696cda7abd9dda (patch) | |
tree | 839ea425fcf5948465a8da7480e71bc41aee4a3f /drivers/gpu/drm/i915/display/intel_display_debugfs.h | |
parent | 5ec2b4f77e77b747b69afe10a261850a3d3b8e1c (diff) | |
download | linux-fd71fc38da7d5d59e12657c8f2696cda7abd9dda.tar.xz |
drm/i915/display: stop returning errors from debugfs registration
Failures to register debugfs should be ignored anyway, so stop
propagating errors altogether for clarity and simplicity. No functional
changes.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/346562ccef2282ccdbdea54409fab1d2b48f313c.1630327990.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_display_debugfs.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_display_debugfs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.h b/drivers/gpu/drm/i915/display/intel_display_debugfs.h index 557901f3eb90..c72e35ecba1f 100644 --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.h +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.h @@ -12,12 +12,12 @@ struct drm_i915_private; #ifdef CONFIG_DEBUG_FS void intel_display_debugfs_register(struct drm_i915_private *i915); -int intel_connector_debugfs_add(struct drm_connector *connector); -int intel_crtc_debugfs_add(struct drm_crtc *crtc); +void intel_connector_debugfs_add(struct drm_connector *connector); +void intel_crtc_debugfs_add(struct drm_crtc *crtc); #else static inline void intel_display_debugfs_register(struct drm_i915_private *i915) {} -static inline int intel_connector_debugfs_add(struct drm_connector *connector) { return 0; } -static inline int intel_crtc_debugfs_add(struct drm_crtc *crtc) { return 0; } +static inline void intel_connector_debugfs_add(struct drm_connector *connector) {} +static inline void intel_crtc_debugfs_add(struct drm_crtc *crtc) {} #endif #endif /* __INTEL_DISPLAY_DEBUGFS_H__ */ |