ACPI: SBS: manage alarm sysfs attribute through psy core
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 9 Jun 2024 11:13:28 +0000 (13:13 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Jun 2024 19:30:00 +0000 (21:30 +0200)
commit6bad28cfc30988a845fb3f59a99f4b8a4ce8fe95
treeb9a97f31ddd389bd6239f3d810e34fe24d31644d
parenta231eed10ed5a290129fda36ad7bcc263c53ff7d
ACPI: SBS: manage alarm sysfs attribute through psy core

Let the power supply core register the attribute.

This ensures that the attribute is created before the device is
announced to userspace, avoiding a race condition.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sbs.c