aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/scan.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2007-02-03 01:39:07 -0500
committerLen Brown <len.brown@intel.com>2007-02-03 01:39:07 -0500
commit6b259707d53f0f25f0b24318a0774f1ae7e7e92c (patch)
tree9f05353c2134d57607ee9780e3a35e56952ea2e8 /drivers/acpi/scan.c
parenta4144e451ce1951e8dad2aa8e2288f75ab745172 (diff)
parentdb50342205deabaff9ce1fbe53d5ba351992fa08 (diff)
Pull trivial into test branch
Conflicts: drivers/acpi/scan.c Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r--drivers/acpi/scan.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 0a13d954daed..64f26db10c8e 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -989,49 +989,6 @@ static int acpi_device_set_context(struct acpi_device *device, int type)
989 return result; 989 return result;
990} 990}
991 991
992static void acpi_device_get_debug_info(struct acpi_device *device,
993 acpi_handle handle, int type)
994{
995#ifdef CONFIG_ACPI_DEBUG_OUTPUT
996 char *type_string = NULL;
997 char name[80] = { '?', '\0' };
998 struct acpi_buffer buffer = { sizeof(name), name };
999
1000 switch (type) {
1001 case ACPI_BUS_TYPE_DEVICE:
1002 type_string = "Device";
1003 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
1004 break;
1005 case ACPI_BUS_TYPE_POWER:
1006 type_string = "Power Resource";
1007 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
1008 break;
1009 case ACPI_BUS_TYPE_PROCESSOR:
1010 type_string = "Processor";
1011 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
1012 break;
1013 case ACPI_BUS_TYPE_SYSTEM:
1014 type_string = "System";
1015 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
1016 break;
1017 case ACPI_BUS_TYPE_THERMAL:
1018 type_string = "Thermal Zone";
1019 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
1020 break;
1021 case ACPI_BUS_TYPE_POWER_BUTTON:
1022 type_string = "Power Button";
1023 sprintf(name, "PWRB");
1024 break;
1025 case ACPI_BUS_TYPE_SLEEP_BUTTON:
1026 type_string = "Sleep Button";
1027 sprintf(name, "SLPB");
1028 break;
1029 }
1030
1031 printk(KERN_DEBUG "Found %s %s [%p]\n", type_string, name, handle);
1032#endif /*CONFIG_ACPI_DEBUG_OUTPUT */
1033}
1034
1035static int acpi_bus_remove(struct acpi_device *dev, int rmdevice) 992static int acpi_bus_remove(struct acpi_device *dev, int rmdevice)
1036{ 993{
1037 if (!dev) 994 if (!dev)
@@ -1161,8 +1118,6 @@ acpi_add_single_object(struct acpi_device **child,
1161 if ((result = acpi_device_set_context(device, type))) 1118 if ((result = acpi_device_set_context(device, type)))
1162 goto end; 1119 goto end;
1163 1120
1164 acpi_device_get_debug_info(device, handle, type);
1165
1166 result = acpi_device_register(device, parent); 1121 result = acpi_device_register(device, parent);
1167 1122
1168 /* 1123 /*