aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/scan.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 44383fe35082..6c83342d13d5 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -916,7 +916,7 @@ static int acpi_bus_get_flags(struct acpi_device *device)
916 return 0; 916 return 0;
917} 917}
918 918
919static void acpi_device_get_busid(struct acpi_device *device, int type) 919static void acpi_device_get_busid(struct acpi_device *device)
920{ 920{
921 char bus_id[5] = { '?', 0 }; 921 char bus_id[5] = { '?', 0 };
922 struct acpi_buffer buffer = { sizeof(bus_id), bus_id }; 922 struct acpi_buffer buffer = { sizeof(bus_id), bus_id };
@@ -928,7 +928,7 @@ static void acpi_device_get_busid(struct acpi_device *device, int type)
928 * The device's Bus ID is simply the object name. 928 * The device's Bus ID is simply the object name.
929 * TBD: Shouldn't this value be unique (within the ACPI namespace)? 929 * TBD: Shouldn't this value be unique (within the ACPI namespace)?
930 */ 930 */
931 switch (type) { 931 switch (device->device_type) {
932 case ACPI_BUS_TYPE_SYSTEM: 932 case ACPI_BUS_TYPE_SYSTEM:
933 strcpy(device->pnp.bus_id, "ACPI"); 933 strcpy(device->pnp.bus_id, "ACPI");
934 break; 934 break;
@@ -1055,7 +1055,7 @@ acpi_add_cid(
1055 return cid; 1055 return cid;
1056} 1056}
1057 1057
1058static void acpi_device_set_id(struct acpi_device *device, int type) 1058static void acpi_device_set_id(struct acpi_device *device)
1059{ 1059{
1060 struct acpi_device_info *info = NULL; 1060 struct acpi_device_info *info = NULL;
1061 char *hid = NULL; 1061 char *hid = NULL;
@@ -1064,7 +1064,7 @@ static void acpi_device_set_id(struct acpi_device *device, int type)
1064 char *cid_add = NULL; 1064 char *cid_add = NULL;
1065 acpi_status status; 1065 acpi_status status;
1066 1066
1067 switch (type) { 1067 switch (device->device_type) {
1068 case ACPI_BUS_TYPE_DEVICE: 1068 case ACPI_BUS_TYPE_DEVICE:
1069 status = acpi_get_object_info(device->handle, &info); 1069 status = acpi_get_object_info(device->handle, &info);
1070 if (ACPI_FAILURE(status)) { 1070 if (ACPI_FAILURE(status)) {
@@ -1122,7 +1122,7 @@ static void acpi_device_set_id(struct acpi_device *device, int type)
1122 * Fix for the system root bus device -- the only root-level device. 1122 * Fix for the system root bus device -- the only root-level device.
1123 */ 1123 */
1124 if (((acpi_handle)device->parent == ACPI_ROOT_OBJECT) && 1124 if (((acpi_handle)device->parent == ACPI_ROOT_OBJECT) &&
1125 (type == ACPI_BUS_TYPE_DEVICE)) { 1125 (device->device_type == ACPI_BUS_TYPE_DEVICE)) {
1126 hid = ACPI_BUS_HID; 1126 hid = ACPI_BUS_HID;
1127 strcpy(device->pnp.device_name, ACPI_BUS_DEVICE_NAME); 1127 strcpy(device->pnp.device_name, ACPI_BUS_DEVICE_NAME);
1128 strcpy(device->pnp.device_class, ACPI_BUS_CLASS); 1128 strcpy(device->pnp.device_class, ACPI_BUS_CLASS);
@@ -1241,7 +1241,7 @@ acpi_add_single_object(struct acpi_device **child,
1241 device->parent = parent; 1241 device->parent = parent;
1242 device->bus_ops = *ops; /* workround for not call .start */ 1242 device->bus_ops = *ops; /* workround for not call .start */
1243 1243
1244 acpi_device_get_busid(device, type); 1244 acpi_device_get_busid(device);
1245 1245
1246 /* 1246 /*
1247 * Flags 1247 * Flags
@@ -1304,7 +1304,7 @@ acpi_add_single_object(struct acpi_device **child,
1304 * Hardware ID, Unique ID, & Bus Address 1304 * Hardware ID, Unique ID, & Bus Address
1305 * ------------------------------------- 1305 * -------------------------------------
1306 */ 1306 */
1307 acpi_device_set_id(device, type); 1307 acpi_device_set_id(device);
1308 1308
1309 /* 1309 /*
1310 * Power Management 1310 * Power Management