linux/drivers/platform/x86/hp
Rafael J. Wysocki abfbe5ee8a
platform/x86: hp_accel: Check ACPI_COMPANION() against NULL
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
platform/x86 hp_accel driver.

Fixes: 8ebcb6c94c ("platform/x86: hp_accel: Convert to be a platform driver")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/2425918.ElGaqSPkdT@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
History 2026-05-19 16:47:45 +03:00
..
hp-bioscfg platform/x86: hp-bioscfg: Support allocations of larger data 2026-02-27 13:10:16 +02:00
hp-wmi.c hp-wmi: fix support for thermal profile Omen 16-с0xxx laptops 2026-05-19 16:46:54 +03:00
hp_accel.c platform/x86: hp_accel: Check ACPI_COMPANION() against NULL 2026-05-19 16:47:45 +03:00
Kconfig ACPI: EC: make EC support compile-time conditional 2024-10-24 17:47:15 +02:00
Makefile platform/x86: hp-bioscfg: Makefile 2023-07-10 14:41:29 +02:00
tc1100-wmi.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00