diff options
-rw-r--r-- | drivers/acpi/pci_slot.c | 4 | ||||
-rw-r--r-- | drivers/acpi/scan.c | 12 | ||||
-rw-r--r-- | drivers/acpi/sleep.c | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/acpi/pci_slot.c b/drivers/acpi/pci_slot.c index 12158e0d009b..da9d6d25cf6d 100644 --- a/drivers/acpi/pci_slot.c +++ b/drivers/acpi/pci_slot.c | |||
@@ -57,7 +57,7 @@ ACPI_MODULE_NAME("pci_slot"); | |||
57 | MY_NAME , ## arg); \ | 57 | MY_NAME , ## arg); \ |
58 | } while (0) | 58 | } while (0) |
59 | 59 | ||
60 | #define SLOT_NAME_SIZE 20 /* Inspired by #define in acpiphp.h */ | 60 | #define SLOT_NAME_SIZE 21 /* Inspired by #define in acpiphp.h */ |
61 | 61 | ||
62 | struct acpi_pci_slot { | 62 | struct acpi_pci_slot { |
63 | acpi_handle root_handle; /* handle of the root bridge */ | 63 | acpi_handle root_handle; /* handle of the root bridge */ |
@@ -149,7 +149,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) | |||
149 | return AE_OK; | 149 | return AE_OK; |
150 | } | 150 | } |
151 | 151 | ||
152 | snprintf(name, sizeof(name), "%u", (u32)sun); | 152 | snprintf(name, sizeof(name), "%llu", sun); |
153 | pci_slot = pci_create_slot(pci_bus, device, name, NULL); | 153 | pci_slot = pci_create_slot(pci_bus, device, name, NULL); |
154 | if (IS_ERR(pci_slot)) { | 154 | if (IS_ERR(pci_slot)) { |
155 | err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot)); | 155 | err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot)); |
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 318b1ea7a5bf..5699d979596d 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -1265,16 +1265,6 @@ acpi_add_single_object(struct acpi_device **child, | |||
1265 | acpi_device_set_id(device, parent, handle, type); | 1265 | acpi_device_set_id(device, parent, handle, type); |
1266 | 1266 | ||
1267 | /* | 1267 | /* |
1268 | * The ACPI device is attached to acpi handle before getting | ||
1269 | * the power/wakeup/peformance flags. Otherwise OS can't get | ||
1270 | * the corresponding ACPI device by the acpi handle in the course | ||
1271 | * of getting the power/wakeup/performance flags. | ||
1272 | */ | ||
1273 | result = acpi_device_set_context(device, type); | ||
1274 | if (result) | ||
1275 | goto end; | ||
1276 | |||
1277 | /* | ||
1278 | * Power Management | 1268 | * Power Management |
1279 | * ---------------- | 1269 | * ---------------- |
1280 | */ | 1270 | */ |
@@ -1304,6 +1294,8 @@ acpi_add_single_object(struct acpi_device **child, | |||
1304 | goto end; | 1294 | goto end; |
1305 | } | 1295 | } |
1306 | 1296 | ||
1297 | if ((result = acpi_device_set_context(device, type))) | ||
1298 | goto end; | ||
1307 | 1299 | ||
1308 | result = acpi_device_register(device, parent); | 1300 | result = acpi_device_register(device, parent); |
1309 | 1301 | ||
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index feece693d773..a90afcc723ab 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c | |||
@@ -405,6 +405,14 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = { | |||
405 | }, | 405 | }, |
406 | }, | 406 | }, |
407 | { | 407 | { |
408 | .callback = init_set_sci_en_on_resume, | ||
409 | .ident = "Hewlett-Packard HP Pavilion dv3 Notebook PC", | ||
410 | .matches = { | ||
411 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | ||
412 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion dv3 Notebook PC"), | ||
413 | }, | ||
414 | }, | ||
415 | { | ||
408 | .callback = init_old_suspend_ordering, | 416 | .callback = init_old_suspend_ordering, |
409 | .ident = "Panasonic CF51-2L", | 417 | .ident = "Panasonic CF51-2L", |
410 | .matches = { | 418 | .matches = { |