drm/i915/display: Remove compile guard around fbdev debugfs output
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 12 Dec 2024 17:08:52 +0000 (18:08 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Wed, 5 Mar 2025 20:48:50 +0000 (21:48 +0100)
If fbdev support has been disabled, no output will be shown. Remove
the fbdev-related compile guard from the driver's debugfs code.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241212170913.185939-12-tzimmermann@suse.de
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/i915/display/intel_display_debugfs.c

index 510c15a6271f2e22dfa800d5c22a821cf2d50391..fdedf65bee533288a203537e749ea173edb8203d 100644 (file)
@@ -114,7 +114,6 @@ static int i915_gem_framebuffer_info(struct seq_file *m, void *data)
        struct intel_framebuffer *fbdev_fb = NULL;
        struct drm_framebuffer *drm_fb;
 
-#ifdef CONFIG_DRM_FBDEV_EMULATION
        fbdev_fb = intel_fbdev_framebuffer(display->fbdev.fbdev);
        if (fbdev_fb) {
                seq_printf(m, "fbcon size: %d x %d, depth %d, %d bpp, modifier 0x%llx, refcount %d, obj ",
@@ -127,7 +126,6 @@ static int i915_gem_framebuffer_info(struct seq_file *m, void *data)
                intel_bo_describe(m, intel_fb_bo(&fbdev_fb->base));
                seq_putc(m, '\n');
        }
-#endif
 
        mutex_lock(&display->drm->mode_config.fb_lock);
        drm_for_each_fb(drm_fb, display->drm) {