Commit a8c02fdd authored by Jani Nikula's avatar Jani Nikula
Browse files

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/f4121e6c70bac6c26ef3cf51aaf72822f2cb2d54.1763578288.git.jani.nikula@intel.com


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent aa4dc3ee
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -95,7 +95,6 @@ void intel_vga_reset_io_mem(struct intel_display *display)
	vga_put(pdev, VGA_RSRC_LEGACY_IO);
}

#ifdef I915
static int intel_gmch_vga_set_state(struct intel_display *display, bool enable_decode)
{
	struct pci_dev *pdev = to_pci_dev(display->drm->dev);
@@ -135,13 +134,6 @@ static unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_
	else
		return VGA_RSRC_NORMAL_IO | VGA_RSRC_NORMAL_MEM;
}
#else
static unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode)
{
	/* ToDo: Implement the actual handling of vga decode */
	return 0;
}
#endif

int intel_vga_register(struct intel_display *display)
{