summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2022-12-14 11:49:44 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-25 11:25:40 +0100
commit44610f4c3093bbce3061b77d37bdf1bed8e379da (patch)
tree2499401c98f9451556b7b72e18987014879baa20
parent185ffdeb772c6c8cb30878dd4be488976c780f2b (diff)
downloadlinux-44610f4c3093bbce3061b77d37bdf1bed8e379da.tar.gz
linux-44610f4c3093bbce3061b77d37bdf1bed8e379da.tar.bz2
linux-44610f4c3093bbce3061b77d37bdf1bed8e379da.zip
drm/i915: Remove __maybe_unused from mtl_info
[ Upstream commit fff758698842fb6722be37498d8773e0fb47f000 ] The attribute __maybe_unused should remain only until the respective info is not in the pciidlist. The info can't be added together with its definition because that would cause the driver to automatically probe for the device, while it's still not ready for that. However once pciidlist contains it, the attribute can be removed. Fixes: 7835303982d1 ("drm/i915/mtl: Add MeteorLake PCI IDs") Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221214194944.3670344-1-lucas.demarchi@intel.com (cherry picked from commit 50490ce05b7a50b0bd4108fa7d6db3ca2972fa83) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/gpu/drm/i915/i915_pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
index 34f2d9da201e..fe4f279aaeb3 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -1130,7 +1130,6 @@ static const struct intel_gt_definition xelpmp_extra_gt[] = {
{}
};
-__maybe_unused
static const struct intel_device_info mtl_info = {
XE_HP_FEATURES,
XE_LPDP_FEATURES,