diff options
author | Armin Wolf <W_Armin@gmx.de> | 2023-10-15 01:54:49 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-10-18 15:30:54 +0200 |
commit | fe0e04cf66a12ffe6d1b43725ddaabd5599d024f (patch) | |
tree | d23eb91fc68c054c3df76050344dc184c1d081ea /mm | |
parent | 235985d1763f7aba92c1c64e5f5aaec26c2c9b18 (diff) |
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 <W_Armin@gmx.de>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Tested-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20231014235449.288702-1-W_Armin@gmx.de
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions