]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Feb 2023 10:25:40 +0000 (11:25 +0100)
commit98b9583142598ef46bd1f6e34c8c5782c47e272c
tree2499401c98f9451556b7b72e18987014879baa20
parent82c0dee3b44317275fcd5041c60830fdd3da0f32
drm/i915: Remove __maybe_unused from mtl_info

[ Upstream commit eee82b00ac12de19b041b205ff3b773b5597fcaf ]

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: 854b8eeb48d4 ("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 41644331b7896b39ff667abf8614e23a6bc3a26e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/i915/i915_pci.c