summarylogtreecommitdiffstats
path: root/0302-lenovo-wmi2.patch
diff options
context:
space:
mode:
authordingjingmaster2020-09-24 20:40:56 +0800
committerdingjingmaster2020-09-24 20:40:56 +0800
commit1872ea3a3b8c1bc9f696c250675064569e438f2b (patch)
tree0777f88509464742455290aa77923bd182ad52bf /0302-lenovo-wmi2.patch
downloadaur-1872ea3a3b8c1bc9f696c250675064569e438f2b.tar.gz
yay
Diffstat (limited to '0302-lenovo-wmi2.patch')
-rw-r--r--0302-lenovo-wmi2.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/0302-lenovo-wmi2.patch b/0302-lenovo-wmi2.patch
new file mode 100644
index 00000000000..c6b1b060365
--- /dev/null
+++ b/0302-lenovo-wmi2.patch
@@ -0,0 +1,15 @@
+diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
+index 791449a2370f..45d9010aafcf 100644
+--- a/drivers/platform/x86/wmi.c
++++ b/drivers/platform/x86/wmi.c
+@@ -1081,7 +1081,8 @@ static int wmi_create_device(struct device *wmi_bus_dev,
+ wblock->dev.dev.bus = &wmi_bus_type;
+ wblock->dev.dev.parent = wmi_bus_dev;
+
+- dev_set_name(&wblock->dev.dev, "%pUL", gblock->guid);
++ dev_set_name(&wblock->dev.dev, "%s-%pUL",
++ dev_name(&wblock->acpi_device->dev), gblock->guid);
+
+ device_initialize(&wblock->dev.dev);
+
+