mirror-linux/drivers/platform/surface
Armin Wolf 8a4b575d00 platform/surface: platform_profile: Propagate error if profile registration fails
commit fe0e04cf66 upstream.

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: b78b4982d7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 12:03:15 +02:00
..
aggregator platform/surface: aggregator: Allow completion work-items to be executed in parallel 2023-06-14 11:15:15 +02:00
Kconfig
Makefile
surface3-wmi.c
surface3_power.c
surface_acpi_notify.c
surface_aggregator_cdev.c
surface_aggregator_hub.c
surface_aggregator_registry.c
surface_aggregator_tabletsw.c platform/surface: aggregator_tabletsw: Add support for book mode in KIP subsystem 2023-06-14 11:15:15 +02:00
surface_dtx.c
surface_gpe.c
surface_hotplug.c
surface_platform_profile.c platform/surface: platform_profile: Propagate error if profile registration fails 2023-10-25 12:03:15 +02:00
surfacepro3_button.c