diff options
| author | Li Chen <[email protected]> | 2025-06-20 13:13:07 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2025-07-01 14:06:51 +0000 |
| commit | b9f58d3572a8e1ef707b941eae58ec4014b9269d (patch) | |
| tree | 9c1a85424832d873f597e32989d9c9817bc15d3c /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | Linux 6.16-rc1 (diff) | |
| download | kernel-b9f58d3572a8e1ef707b941eae58ec4014b9269d.tar.gz kernel-b9f58d3572a8e1ef707b941eae58ec4014b9269d.zip | |
ACPI: Return -ENODEV from acpi_parse_spcr() when SPCR support is disabled
If CONFIG_ACPI_SPCR_TABLE is disabled, acpi_parse_spcr()
currently returns 0, which may incorrectly suggest that
SPCR parsing was successful. This patch changes the behavior
to return -ENODEV to clearly indicate that SPCR support
is not available.
This prepares the codebase for future changes that depend
on acpi_parse_spcr() failure detection, such as suppressing
misleading console messages.
Signed-off-by: Li Chen <[email protected]>
Acked-by: Hanjun Guo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
