aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2023-10-14 23:54:49 +0000
committerHans de Goede <[email protected]>2023-10-18 13:30:54 +0000
commitfe0e04cf66a12ffe6d1b43725ddaabd5599d024f (patch)
treed23eb91fc68c054c3df76050344dc184c1d081ea /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentplatform/x86: asus-wmi: Map 0x2a code, Ignore 0x2b and 0x2c events (diff)
downloadkernel-fe0e04cf66a12ffe6d1b43725ddaabd5599d024f.tar.gz
kernel-fe0e04cf66a12ffe6d1b43725ddaabd5599d024f.zip
platform/surface: platform_profile: Propagate error if profile registration fails
If platform_profile_register() fails, the driver does not propagate the error, but instead probes successfully. This means when the driver unbinds, the a warning might be issued by platform_profile_remove(). Fix this by propagating the error back to the caller of surface_platform_profile_probe(). Compile-tested only. Fixes: b78b4982d763 ("platform/surface: Add platform profile driver") Signed-off-by: Armin Wolf <[email protected]> Reviewed-by: Maximilian Luz <[email protected]> Tested-by: Maximilian Luz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions