diff options
Diffstat (limited to 'drivers/acpi/pci_link.c')
-rw-r--r-- | drivers/acpi/pci_link.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 6d903bfe5197..d7aa9c10335c 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -161,7 +161,7 @@ acpi_pci_link_check_possible(struct acpi_resource *resource, void *context) | |||
161 | break; | 161 | break; |
162 | } | 162 | } |
163 | default: | 163 | default: |
164 | ACPI_ERROR((AE_INFO, "Resource is not an IRQ entry\n")); | 164 | printk(KERN_ERR PREFIX "Resource is not an IRQ entry\n"); |
165 | return_ACPI_STATUS(AE_OK); | 165 | return_ACPI_STATUS(AE_OK); |
166 | } | 166 | } |
167 | 167 | ||
@@ -232,7 +232,7 @@ acpi_pci_link_check_current(struct acpi_resource *resource, void *context) | |||
232 | } | 232 | } |
233 | break; | 233 | break; |
234 | default: | 234 | default: |
235 | ACPI_ERROR((AE_INFO, "Resource %d isn't an IRQ", resource->type)); | 235 | printk(KERN_ERR PREFIX "Resource %d isn't an IRQ\n", resource->type); |
236 | case ACPI_RESOURCE_TYPE_END_TAG: | 236 | case ACPI_RESOURCE_TYPE_END_TAG: |
237 | return_ACPI_STATUS(AE_OK); | 237 | return_ACPI_STATUS(AE_OK); |
238 | } | 238 | } |
@@ -264,7 +264,7 @@ static int acpi_pci_link_get_current(struct acpi_pci_link *link) | |||
264 | /* Query _STA, set link->device->status */ | 264 | /* Query _STA, set link->device->status */ |
265 | result = acpi_bus_get_status(link->device); | 265 | result = acpi_bus_get_status(link->device); |
266 | if (result) { | 266 | if (result) { |
267 | ACPI_ERROR((AE_INFO, "Unable to read status")); | 267 | printk(KERN_ERR PREFIX "Unable to read status\n"); |
268 | goto end; | 268 | goto end; |
269 | } | 269 | } |
270 | 270 | ||
@@ -287,7 +287,7 @@ static int acpi_pci_link_get_current(struct acpi_pci_link *link) | |||
287 | } | 287 | } |
288 | 288 | ||
289 | if (acpi_strict && !irq) { | 289 | if (acpi_strict && !irq) { |
290 | ACPI_ERROR((AE_INFO, "_CRS returned 0")); | 290 | printk(KERN_ERR PREFIX "_CRS returned 0\n"); |
291 | result = -ENODEV; | 291 | result = -ENODEV; |
292 | } | 292 | } |
293 | 293 | ||
@@ -357,7 +357,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
357 | /* ignore resource_source, it's optional */ | 357 | /* ignore resource_source, it's optional */ |
358 | break; | 358 | break; |
359 | default: | 359 | default: |
360 | ACPI_ERROR((AE_INFO, "Invalid Resource_type %d\n", link->irq.resource_type)); | 360 | printk(KERN_ERR PREFIX "Invalid Resource_type %d\n", link->irq.resource_type); |
361 | result = -EINVAL; | 361 | result = -EINVAL; |
362 | goto end; | 362 | goto end; |
363 | 363 | ||
@@ -377,7 +377,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
377 | /* Query _STA, set device->status */ | 377 | /* Query _STA, set device->status */ |
378 | result = acpi_bus_get_status(link->device); | 378 | result = acpi_bus_get_status(link->device); |
379 | if (result) { | 379 | if (result) { |
380 | ACPI_ERROR((AE_INFO, "Unable to read status")); | 380 | printk(KERN_ERR PREFIX "Unable to read status\n"); |
381 | goto end; | 381 | goto end; |
382 | } | 382 | } |
383 | if (!link->device->status.enabled) { | 383 | if (!link->device->status.enabled) { |
@@ -496,7 +496,7 @@ int __init acpi_irq_penalty_init(void) | |||
496 | 496 | ||
497 | link = list_entry(node, struct acpi_pci_link, node); | 497 | link = list_entry(node, struct acpi_pci_link, node); |
498 | if (!link) { | 498 | if (!link) { |
499 | ACPI_ERROR((AE_INFO, "Invalid link context")); | 499 | printk(KERN_ERR PREFIX "Invalid link context\n"); |
500 | continue; | 500 | continue; |
501 | } | 501 | } |
502 | 502 | ||
@@ -583,10 +583,10 @@ static int acpi_pci_link_allocate(struct acpi_pci_link *link) | |||
583 | 583 | ||
584 | /* Attempt to enable the link device at this IRQ. */ | 584 | /* Attempt to enable the link device at this IRQ. */ |
585 | if (acpi_pci_link_set(link, irq)) { | 585 | if (acpi_pci_link_set(link, irq)) { |
586 | ACPI_ERROR((AE_INFO, "Unable to set IRQ for %s [%s]. " | 586 | printk(KERN_ERR PREFIX "Unable to set IRQ for %s [%s]. " |
587 | "Try pci=noacpi or acpi=off", | 587 | "Try pci=noacpi or acpi=off\n", |
588 | acpi_device_name(link->device), | 588 | acpi_device_name(link->device), |
589 | acpi_device_bid(link->device))); | 589 | acpi_device_bid(link->device)); |
590 | return_VALUE(-ENODEV); | 590 | return_VALUE(-ENODEV); |
591 | } else { | 591 | } else { |
592 | acpi_irq_penalty[link->irq.active] += PIRQ_PENALTY_PCI_USING; | 592 | acpi_irq_penalty[link->irq.active] += PIRQ_PENALTY_PCI_USING; |
@@ -619,19 +619,19 @@ acpi_pci_link_allocate_irq(acpi_handle handle, | |||
619 | 619 | ||
620 | result = acpi_bus_get_device(handle, &device); | 620 | result = acpi_bus_get_device(handle, &device); |
621 | if (result) { | 621 | if (result) { |
622 | ACPI_ERROR((AE_INFO, "Invalid link device")); | 622 | printk(KERN_ERR PREFIX "Invalid link device\n"); |
623 | return_VALUE(-1); | 623 | return_VALUE(-1); |
624 | } | 624 | } |
625 | 625 | ||
626 | link = (struct acpi_pci_link *)acpi_driver_data(device); | 626 | link = (struct acpi_pci_link *)acpi_driver_data(device); |
627 | if (!link) { | 627 | if (!link) { |
628 | ACPI_ERROR((AE_INFO, "Invalid link context")); | 628 | printk(KERN_ERR PREFIX "Invalid link context\n"); |
629 | return_VALUE(-1); | 629 | return_VALUE(-1); |
630 | } | 630 | } |
631 | 631 | ||
632 | /* TBD: Support multiple index (IRQ) entries per Link Device */ | 632 | /* TBD: Support multiple index (IRQ) entries per Link Device */ |
633 | if (index) { | 633 | if (index) { |
634 | ACPI_ERROR((AE_INFO, "Invalid index %d", index)); | 634 | printk(KERN_ERR PREFIX "Invalid index %d\n", index); |
635 | return_VALUE(-1); | 635 | return_VALUE(-1); |
636 | } | 636 | } |
637 | 637 | ||
@@ -643,7 +643,7 @@ acpi_pci_link_allocate_irq(acpi_handle handle, | |||
643 | 643 | ||
644 | if (!link->irq.active) { | 644 | if (!link->irq.active) { |
645 | mutex_unlock(&acpi_link_lock); | 645 | mutex_unlock(&acpi_link_lock); |
646 | ACPI_ERROR((AE_INFO, "Link active IRQ is 0!")); | 646 | printk(KERN_ERR PREFIX "Link active IRQ is 0!\n"); |
647 | return_VALUE(-1); | 647 | return_VALUE(-1); |
648 | } | 648 | } |
649 | link->refcnt++; | 649 | link->refcnt++; |
@@ -675,20 +675,20 @@ int acpi_pci_link_free_irq(acpi_handle handle) | |||
675 | 675 | ||
676 | result = acpi_bus_get_device(handle, &device); | 676 | result = acpi_bus_get_device(handle, &device); |
677 | if (result) { | 677 | if (result) { |
678 | ACPI_ERROR((AE_INFO, "Invalid link device")); | 678 | printk(KERN_ERR PREFIX "Invalid link device\n"); |
679 | return_VALUE(-1); | 679 | return_VALUE(-1); |
680 | } | 680 | } |
681 | 681 | ||
682 | link = (struct acpi_pci_link *)acpi_driver_data(device); | 682 | link = (struct acpi_pci_link *)acpi_driver_data(device); |
683 | if (!link) { | 683 | if (!link) { |
684 | ACPI_ERROR((AE_INFO, "Invalid link context")); | 684 | printk(KERN_ERR PREFIX "Invalid link context\n"); |
685 | return_VALUE(-1); | 685 | return_VALUE(-1); |
686 | } | 686 | } |
687 | 687 | ||
688 | mutex_lock(&acpi_link_lock); | 688 | mutex_lock(&acpi_link_lock); |
689 | if (!link->irq.initialized) { | 689 | if (!link->irq.initialized) { |
690 | mutex_unlock(&acpi_link_lock); | 690 | mutex_unlock(&acpi_link_lock); |
691 | ACPI_ERROR((AE_INFO, "Link isn't initialized")); | 691 | printk(KERN_ERR PREFIX "Link isn't initialized\n"); |
692 | return_VALUE(-1); | 692 | return_VALUE(-1); |
693 | } | 693 | } |
694 | #ifdef FUTURE_USE | 694 | #ifdef FUTURE_USE |
@@ -813,7 +813,7 @@ static int irqrouter_resume(struct sys_device *dev) | |||
813 | list_for_each(node, &acpi_link.entries) { | 813 | list_for_each(node, &acpi_link.entries) { |
814 | link = list_entry(node, struct acpi_pci_link, node); | 814 | link = list_entry(node, struct acpi_pci_link, node); |
815 | if (!link) { | 815 | if (!link) { |
816 | ACPI_ERROR((AE_INFO, "Invalid link context")); | 816 | printk(KERN_ERR PREFIX "Invalid link context\n"); |
817 | continue; | 817 | continue; |
818 | } | 818 | } |
819 | acpi_pci_link_resume(link); | 819 | acpi_pci_link_resume(link); |