]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/chrome: chromeos_tbmc: Check ACPI_COMPANION()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 May 2026 16:35:54 +0000 (18:35 +0200)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 13 May 2026 02:19:46 +0000 (02:19 +0000)
commitc15dbae7c856fb53cc6ffb86c6c64ebb816d07c8
tree91387dae0707f68b287d1c165bed304c25bc2a2e
parent8a4a217f617b1ac2f8c095f33efd67d947ddb2cf
platform/chrome: chromeos_tbmc: 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
chromeos_tbmc driver.

Fixes: a2676ead257f ("platform/chrome: chromeos_tbmc: Convert to a platform driver")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/1875121.VLH7GnMWUR@rafael.j.wysocki
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/chromeos_tbmc.c