diff options
author | Armin Wolf <W_Armin@gmx.de> | 2024-01-30 23:19:42 +0100 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-02-06 11:53:20 +0200 |
commit | 6468e64ee380514b331ccb743fa491b23cd8b4dd (patch) | |
tree | be4e657b84dfa1a21a8a73cbda5ef9977cc65a99 /drivers/platform | |
parent | 682c259a849610c7864cc75d52415c782c78653a (diff) | |
download | linux-stable-6468e64ee380514b331ccb743fa491b23cd8b4dd.tar.gz linux-stable-6468e64ee380514b331ccb743fa491b23cd8b4dd.tar.bz2 linux-stable-6468e64ee380514b331ccb743fa491b23cd8b4dd.zip |
platform/x86: wmi: Stop using ACPI device class
When an ACPI netlink event is received by acpid, the ACPI device
class is passed as its first argument. But since the class string
is not initialized during probe, an empty string is being passed:
netlink: PNP0C14:01 000000d0 00000000
Fix this by passing a static string instead.
Tested on a Dell Inspiron 3505.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240130221942.2770-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/wmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 7ef1e82dc61c..3335de4e32b2 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -1202,8 +1202,7 @@ static int wmi_notify_device(struct device *dev, void *data) wblock->handler(*event, wblock->handler_data); } - acpi_bus_generate_netlink_event(wblock->acpi_device->pnp.device_class, - acpi_dev_name(wblock->acpi_device), *event, 0); + acpi_bus_generate_netlink_event("wmi", acpi_dev_name(wblock->acpi_device), *event, 0); return -EBUSY; } |