mirror-linux/drivers/platform/surface
Rafael J. Wysocki 5798b46271
platform/surface: surfacepro3_button: Check ACPI_COMPANION()
Every platform driver can be forced to match a device that doesn't match
its list of device IDs because of device_match_driver_override(), so
platform drivers that rely on the existence of a device's ACPI companion
object need to verify its presence.

Accordingly, add a requisite ACPI_COMPANION() check against NULL to the
surfacepro3_button driver.

Fixes: d913a5a12b ("platform/surface: surfacepro3_button: Convert to a platform driver")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Chen Yu <yu.c.chen@intel.com>
Link: https://patch.msgid.link/23119222.EfDdHjke4D@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-05-19 16:51:07 +03:00
..
aggregator Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig platform: Do not enable by default during compile testing 2025-04-24 15:53:35 +03:00
Makefile
surface3-wmi.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
surface3_power.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
surface_acpi_notify.c platform/surface: acpi-notify: add WQ_PERCPU to alloc_workqueue users 2025-11-28 12:06:58 +02:00
surface_aggregator_cdev.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
surface_aggregator_hub.c platform/surface: aggregator_registry: Fix target-ID of base-hub 2023-02-02 22:48:20 +01:00
surface_aggregator_registry.c platform/surface: aggregator_registry: omit battery & AC nodes on Surface Laptop 7 2026-05-19 16:27:12 +03:00
surface_aggregator_tabletsw.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
surface_dtx.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
surface_gpe.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
surface_hotplug.c platform/surface: hotplug: Correct inclusion for GPIO APIs 2026-03-23 11:55:09 +02:00
surface_platform_profile.c ACPI: platform_profile: Remove platform_profile_handler from exported symbols 2025-01-17 19:15:59 +02:00
surfacepro3_button.c platform/surface: surfacepro3_button: Check ACPI_COMPANION() 2026-05-19 16:51:07 +03:00