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)
commit1c975931128c1128892981095a64fb8eabf240eb
tree48060e9f4dd7d7c9a97235de16bb323951bb5c9a
parentfd591341102ba5eb9e517d3889e7566fa45e021e
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 9d265124d051 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
This page took 0.027591 seconds and 5 git commands to generate.