Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/vga: use the same intel_gmch_vga_set_decode() as i915

Drop the #ifdef I915, and use the same intel_gmch_vga_set_decode() for
both i915 and xe.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/f4121e6c70bac6c26ef3cf51aaf72822f2cb2d54.1763578288.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

-8
-8
drivers/gpu/drm/i915/display/intel_vga.c
··· 95 95 vga_put(pdev, VGA_RSRC_LEGACY_IO); 96 96 } 97 97 98 - #ifdef I915 99 98 static int intel_gmch_vga_set_state(struct intel_display *display, bool enable_decode) 100 99 { 101 100 struct pci_dev *pdev = to_pci_dev(display->drm->dev); ··· 134 135 else 135 136 return VGA_RSRC_NORMAL_IO | VGA_RSRC_NORMAL_MEM; 136 137 } 137 - #else 138 - static unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode) 139 - { 140 - /* ToDo: Implement the actual handling of vga decode */ 141 - return 0; 142 - } 143 - #endif 144 138 145 139 int intel_vga_register(struct intel_display *display) 146 140 {