提交 3dfd35cd 编写于 作者: H Henrique de Moraes Holschuh 提交者: Len Brown

ACPI: ibm-acpi: do not use / in driver names

ibm-acpi uses sub-device names like ibm/hotkey, which get in the way of
a sysfs conversion.  Fix it to use ibm_hotkey instead.  Thanks to Zhang
Rui for noticing this.
Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
上级 c9263557
...@@ -1854,7 +1854,7 @@ static int __init register_driver(struct ibm_struct *ibm) ...@@ -1854,7 +1854,7 @@ static int __init register_driver(struct ibm_struct *ibm)
} }
memset(ibm->driver, 0, sizeof(struct acpi_driver)); memset(ibm->driver, 0, sizeof(struct acpi_driver));
sprintf(ibm->driver->name, "%s/%s", IBM_NAME, ibm->name); sprintf(ibm->driver->name, "%s_%s", IBM_NAME, ibm->name);
ibm->driver->ids = ibm->hid; ibm->driver->ids = ibm->hid;
ibm->driver->ops.add = &ibm_device_add; ibm->driver->ops.add = &ibm_device_add;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册