Skip to content

Commit

Permalink
ACPI: ibm-acpi: do not use / in driver names
Browse files Browse the repository at this point in the history
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: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
  • Loading branch information
Henrique de Moraes Holschuh authored and Len Brown committed Dec 7, 2006
1 parent c926355 commit 3dfd35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/ibm_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ static int __init register_driver(struct ibm_struct *ibm)
}

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->ops.add = &ibm_device_add;

Expand Down

0 comments on commit 3dfd35c

Please sign in to comment.