ACPI: PCI: simplify buffer management for evaluating _PRT
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 9 Dec 2008 04:30:15 +0000 (21:30 -0700)
committerLen Brown <len.brown@intel.com>
Wed, 31 Dec 2008 02:14:42 +0000 (21:14 -0500)
commit2320ac6cb078eec77bf93742895dc35e64fae124
treef562e5993eae712b853a6013411d7a1c5c0eea74
parent3b8249de43ecf05407888c1ca6ca6e4945ff823c
ACPI: PCI: simplify buffer management for evaluating _PRT

Previously, acpi_pci_irq_add_prt() did all its own buffer management.
But now that we have ACPI_ALLOCATE_BUFFER, we no longer need to do
that management.  And we don't have to call acpi_get_irq_routing_table()
twice (once to learn the size of the buffer needed, and again to
actually get the table).

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_irq.c