linux-imx/drivers/platform/surface
Armin Wolf fe0e04cf66 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: 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>
2023-10-18 15:30:54 +02:00
..
aggregator RISC-V Patches for the 6.5 Merge Window, Part 1 2023-06-30 09:37:26 -07:00
Kconfig
Makefile
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 POS subsystem 2023-05-30 11:20:30 +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-18 15:30:54 +02:00
surface3_power.c platform/surface: surface3_power: Switch back to use struct i2c_driver's .probe() 2023-06-13 12:32:16 +02:00
surface3-wmi.c
surfacepro3_button.c