]> git.baikalelectronics.ru Git - kernel.git/commit
sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases()
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Jul 2012 19:39:52 +0000 (13:39 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 10 Jul 2012 14:34:59 +0000 (08:34 -0600)
commitcca1f00961343c27c9b85e686557f4b5844ed5f5
tree48060e9f4dd7d7c9a97235de16bb323951bb5c9a
parentb2cdcfe4dd50b71b0843b77fceb1881a84ae2302
sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases()

The generic code to read P2P bridge windows is functionally equivalent
to the sparc-specific pci_cfg_fake_ranges(), so use the generic code.

The "if (!res->start) res->start = ..." removed from the I/O window code
here was an artifact of the Intel 1K window support from 418759fd14aa and
is no longer necessary (it probably was just cloned from x86 and was never
useful on sparc).

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/sparc/kernel/pci.c