Skip to content

Commit fff7586

Browse files
lucasdemarchirodrigovivi
authored andcommitted
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: 7835303 ("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 50490ce) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent c5bc073 commit fff7586

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/i915/i915_pci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,6 @@ static const struct intel_gt_definition xelpmp_extra_gt[] = {
11291129
{}
11301130
};
11311131

1132-
__maybe_unused
11331132
static const struct intel_device_info mtl_info = {
11341133
XE_HP_FEATURES,
11351134
XE_LPDP_FEATURES,

0 commit comments

Comments
 (0)