drm/i915: Remove __maybe_unused from mtl_info
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Dec 2022 19:49:44 +0000 (11:49 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 30 Dec 2022 08:04:36 +0000 (03:04 -0500)
commitfff758698842fb6722be37498d8773e0fb47f000
tree28229969e45332c87a0276eba851109ec715739c
parentc5bc073668206c73c20798eb6d978b5e9db5b16f
drm/i915: Remove __maybe_unused from mtl_info

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>
drivers/gpu/drm/i915/i915_pci.c