diff options
author | Len Brown <len.brown@intel.com> | 2006-10-14 02:28:07 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-10-14 02:28:07 -0400 |
commit | 9aaed2b42d00d4abb2748d72d599a8033600e2bf (patch) | |
tree | 3e887a78c239314fd29b84a4a05cc62ad770c18b /drivers | |
parent | 18d508bf5144e645443e80c606ed513f77369a50 (diff) | |
parent | a790b323fb1b73f9388426bf3b96f153d1c90d2c (diff) |
Pull trivial into test branch
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/motherboard.c | 6 | ||||
-rw-r--r-- | drivers/acpi/pci_link.c | 2 | ||||
-rw-r--r-- | drivers/acpi/power.c | 9 | ||||
-rw-r--r-- | drivers/acpi/processor_core.c | 2 | ||||
-rw-r--r-- | drivers/acpi/processor_idle.c | 2 | ||||
-rw-r--r-- | drivers/acpi/tables/tbget.c | 2 | ||||
-rw-r--r-- | drivers/acpi/tables/tbrsdt.c | 2 |
7 files changed, 14 insertions, 11 deletions
diff --git a/drivers/acpi/motherboard.c b/drivers/acpi/motherboard.c index ec6b7f9ede34..2e17ec75af03 100644 --- a/drivers/acpi/motherboard.c +++ b/drivers/acpi/motherboard.c | |||
@@ -48,6 +48,12 @@ ACPI_MODULE_NAME("acpi_motherboard") | |||
48 | * the io ports if they really know they can use it, while | 48 | * the io ports if they really know they can use it, while |
49 | * still preventing hotplug PCI devices from using it. | 49 | * still preventing hotplug PCI devices from using it. |
50 | */ | 50 | */ |
51 | |||
52 | /* | ||
53 | * When CONFIG_PNP is enabled, pnp/system.c binds to PNP0C01 | ||
54 | * and PNP0C02, redundant with acpi_reserve_io_ranges(). | ||
55 | * But acpi_reserve_io_ranges() is necessary for !CONFIG_PNP. | ||
56 | */ | ||
51 | static acpi_status acpi_reserve_io_ranges(struct acpi_resource *res, void *data) | 57 | static acpi_status acpi_reserve_io_ranges(struct acpi_resource *res, void *data) |
52 | { | 58 | { |
53 | struct resource *requested_res = NULL; | 59 | struct resource *requested_res = NULL; |
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 7f3e7e77e794..d53bd9878ca2 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -307,7 +307,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
307 | if (!link || !irq) | 307 | if (!link || !irq) |
308 | return -EINVAL; | 308 | return -EINVAL; |
309 | 309 | ||
310 | resource = kmalloc(sizeof(*resource) + 1, GFP_ATOMIC); | 310 | resource = kmalloc(sizeof(*resource) + 1, irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL); |
311 | if (!resource) | 311 | if (!resource) |
312 | return -ENOMEM; | 312 | return -ENOMEM; |
313 | 313 | ||
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index fec225d1b6b7..fe67a8af520e 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -216,10 +216,8 @@ static int acpi_power_off_device(acpi_handle handle) | |||
216 | { | 216 | { |
217 | int result = 0; | 217 | int result = 0; |
218 | acpi_status status = AE_OK; | 218 | acpi_status status = AE_OK; |
219 | struct acpi_device *device = NULL; | ||
220 | struct acpi_power_resource *resource = NULL; | 219 | struct acpi_power_resource *resource = NULL; |
221 | 220 | ||
222 | |||
223 | result = acpi_power_get_context(handle, &resource); | 221 | result = acpi_power_get_context(handle, &resource); |
224 | if (result) | 222 | if (result) |
225 | return result; | 223 | return result; |
@@ -230,13 +228,13 @@ static int acpi_power_off_device(acpi_handle handle) | |||
230 | if (resource->references) { | 228 | if (resource->references) { |
231 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 229 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
232 | "Resource [%s] is still in use, dereferencing\n", | 230 | "Resource [%s] is still in use, dereferencing\n", |
233 | device->pnp.bus_id)); | 231 | resource->device->pnp.bus_id)); |
234 | return 0; | 232 | return 0; |
235 | } | 233 | } |
236 | 234 | ||
237 | if (resource->state == ACPI_POWER_RESOURCE_STATE_OFF) { | 235 | if (resource->state == ACPI_POWER_RESOURCE_STATE_OFF) { |
238 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] already off\n", | 236 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] already off\n", |
239 | device->pnp.bus_id)); | 237 | resource->device->pnp.bus_id)); |
240 | return 0; | 238 | return 0; |
241 | } | 239 | } |
242 | 240 | ||
@@ -251,8 +249,7 @@ static int acpi_power_off_device(acpi_handle handle) | |||
251 | return -ENOEXEC; | 249 | return -ENOEXEC; |
252 | 250 | ||
253 | /* Update the power resource's _device_ power state */ | 251 | /* Update the power resource's _device_ power state */ |
254 | device = resource->device; | 252 | resource->device->power.state = ACPI_STATE_D3; |
255 | device->power.state = ACPI_STATE_D3; | ||
256 | 253 | ||
257 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] turned off\n", | 254 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] turned off\n", |
258 | resource->name)); | 255 | resource->name)); |
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index b13d64415b7a..1908e0d20222 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -519,7 +519,7 @@ static int acpi_processor_get_info(struct acpi_processor *pr) | |||
519 | 519 | ||
520 | static void *processor_device_array[NR_CPUS]; | 520 | static void *processor_device_array[NR_CPUS]; |
521 | 521 | ||
522 | static int acpi_processor_start(struct acpi_device *device) | 522 | static int __cpuinit acpi_processor_start(struct acpi_device *device) |
523 | { | 523 | { |
524 | int result = 0; | 524 | int result = 0; |
525 | acpi_status status = AE_OK; | 525 | acpi_status status = AE_OK; |
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 429a39dbd75d..526387dc3799 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -1130,7 +1130,7 @@ static struct notifier_block acpi_processor_latency_notifier = { | |||
1130 | .notifier_call = acpi_processor_latency_notify, | 1130 | .notifier_call = acpi_processor_latency_notify, |
1131 | }; | 1131 | }; |
1132 | 1132 | ||
1133 | int acpi_processor_power_init(struct acpi_processor *pr, | 1133 | int __cpuinit acpi_processor_power_init(struct acpi_processor *pr, |
1134 | struct acpi_device *device) | 1134 | struct acpi_device *device) |
1135 | { | 1135 | { |
1136 | acpi_status status = 0; | 1136 | acpi_status status = 0; |
diff --git a/drivers/acpi/tables/tbget.c b/drivers/acpi/tables/tbget.c index 7856db759af0..11e2d4454e05 100644 --- a/drivers/acpi/tables/tbget.c +++ b/drivers/acpi/tables/tbget.c | |||
@@ -324,7 +324,7 @@ acpi_tb_get_this_table(struct acpi_pointer *address, | |||
324 | 324 | ||
325 | if (header->length < sizeof(struct acpi_table_header)) { | 325 | if (header->length < sizeof(struct acpi_table_header)) { |
326 | ACPI_ERROR((AE_INFO, | 326 | ACPI_ERROR((AE_INFO, |
327 | "Table length (%X) is smaller than minimum (%X)", | 327 | "Table length (%X) is smaller than minimum (%zX)", |
328 | header->length, sizeof(struct acpi_table_header))); | 328 | header->length, sizeof(struct acpi_table_header))); |
329 | 329 | ||
330 | return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH); | 330 | return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH); |
diff --git a/drivers/acpi/tables/tbrsdt.c b/drivers/acpi/tables/tbrsdt.c index 0ad3dbb9ebca..86a5fca9b739 100644 --- a/drivers/acpi/tables/tbrsdt.c +++ b/drivers/acpi/tables/tbrsdt.c | |||
@@ -187,7 +187,7 @@ acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr) | |||
187 | 187 | ||
188 | if (table_ptr->length < sizeof(struct acpi_table_header)) { | 188 | if (table_ptr->length < sizeof(struct acpi_table_header)) { |
189 | ACPI_ERROR((AE_INFO, | 189 | ACPI_ERROR((AE_INFO, |
190 | "RSDT/XSDT length (%X) is smaller than minimum (%X)", | 190 | "RSDT/XSDT length (%X) is smaller than minimum (%zX)", |
191 | table_ptr->length, | 191 | table_ptr->length, |
192 | sizeof(struct acpi_table_header))); | 192 | sizeof(struct acpi_table_header))); |
193 | 193 | ||