diff options
author | Joe Perches <joe@perches.com> | 2012-11-21 08:46:04 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-21 17:56:15 -0500 |
commit | 66fd3835ac9a3740a7bf953b439e54dbc326d272 (patch) | |
tree | 51ad1d5b722536fcd574bb65d2ca37bf1ebae771 /drivers/acpi | |
parent | cd73018f628e5016792575e54401ad6faab3a901 (diff) |
ACPI: Fix logging when no pci_irq is allocated
Work around a defect in the printk subsystem introduced by a
logging change.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/pci_irq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index 0eefa12e648c..f2c3d74af23e 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c | |||
@@ -459,19 +459,19 @@ int acpi_pci_irq_enable(struct pci_dev *dev) | |||
459 | */ | 459 | */ |
460 | if (gsi < 0) { | 460 | if (gsi < 0) { |
461 | u32 dev_gsi; | 461 | u32 dev_gsi; |
462 | dev_warn(&dev->dev, "PCI INT %c: no GSI", pin_name(pin)); | ||
463 | /* Interrupt Line values above 0xF are forbidden */ | 462 | /* Interrupt Line values above 0xF are forbidden */ |
464 | if (dev->irq > 0 && (dev->irq <= 0xF) && | 463 | if (dev->irq > 0 && (dev->irq <= 0xF) && |
465 | (acpi_isa_irq_to_gsi(dev->irq, &dev_gsi) == 0)) { | 464 | (acpi_isa_irq_to_gsi(dev->irq, &dev_gsi) == 0)) { |
466 | printk(" - using ISA IRQ %d\n", dev->irq); | 465 | dev_warn(&dev->dev, "PCI INT %c: no GSI - using ISA IRQ %d\n", |
466 | pin_name(pin), dev->irq); | ||
467 | acpi_register_gsi(&dev->dev, dev_gsi, | 467 | acpi_register_gsi(&dev->dev, dev_gsi, |
468 | ACPI_LEVEL_SENSITIVE, | 468 | ACPI_LEVEL_SENSITIVE, |
469 | ACPI_ACTIVE_LOW); | 469 | ACPI_ACTIVE_LOW); |
470 | return 0; | ||
471 | } else { | 470 | } else { |
472 | printk("\n"); | 471 | dev_warn(&dev->dev, "PCI INT %c: no GSI\n", |
473 | return 0; | 472 | pin_name(pin)); |
474 | } | 473 | } |
474 | return 0; | ||
475 | } | 475 | } |
476 | 476 | ||
477 | rc = acpi_register_gsi(&dev->dev, gsi, triggering, polarity); | 477 | rc = acpi_register_gsi(&dev->dev, gsi, triggering, polarity); |