Skip to contentSkip to conversation

ACPI: ibm_acpi: don't use '/' in driver names

PATCH In review Zhang Rui 1 participant 1 message Dec 7, 2006 ACPI

lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 14/14 ACPI: ibm_acpi: don't use '/' in driver names

From: Henrique de Moraes Holschuh <[email protected]>

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.

---

 drivers/acpi/ibm_acpi.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/ibm_acpi.c +1 -1
Index: linux-2.6.19/drivers/acpi/ibm_acpi.c
===================================================================
@@ -1825,7 +1825,7 @@ static int __init register_driver(struct
 	}
 
 	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;