]> Git Repo - linux.git/commitdiff
drm/i915: Remove __maybe_unused from mtl_info
authorLucas De Marchi <[email protected]>
Wed, 14 Dec 2022 19:49:44 +0000 (11:49 -0800)
committerRodrigo Vivi <[email protected]>
Fri, 30 Dec 2022 08:04:36 +0000 (03:04 -0500)
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 <[email protected]>
Reviewed-by: Radhakrishna Sripada <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 50490ce05b7a50b0bd4108fa7d6db3ca2972fa83)
Signed-off-by: Rodrigo Vivi <[email protected]>
drivers/gpu/drm/i915/i915_pci.c

index 6da9784fe4a244bd4088817db862f2ef677a9ffa..ccd1f864aa19686d52704c75e64a6c404b28c510 100644 (file)
@@ -1129,7 +1129,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,
This page took 0.058311 seconds and 4 git commands to generate.