PCI: Clean up quirk_io_region
authorYinghai Lu <yinghai@kernel.org>
Fri, 12 Apr 2013 12:44:15 +0000 (12:44 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 15 Apr 2013 20:30:44 +0000 (14:30 -0600)
commit65195c76a7f855c879a168937f90a27032662328
tree7e14a4d39aee2a3c48afc45362ab76d8a446c1c5
parent64b001758e778b2b1aad08aa1f6c5896da5f5773
PCI: Clean up quirk_io_region

Before every call of quirk_io_region(), pci_read_config_word() is called.
We can fold that call into quirk_io_region() to make code more readable.

[bhelgaas: changelog, fill bus_region directly rather than copying from res]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c