summaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci/pci.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2017-04-12 14:25:57 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-04-20 15:47:47 +0200
commitdca40b186b757c7f9a05f870f69e0dfaeca59d7b (patch)
tree187dad1f59b103b44b0554d155eb5c8145d5d341 /arch/sh/drivers/pci/pci.c
parentPCI: Add arch_can_pci_mmap_io() on architectures which can mmap() I/O space (diff)
downloadlinux-dca40b186b757c7f9a05f870f69e0dfaeca59d7b.tar.xz
linux-dca40b186b757c7f9a05f870f69e0dfaeca59d7b.zip
PCI: Use BAR index in sysfs attr->private instead of resource pointer
We store the pointer, and then on *every* use of it we loop over the device's resources to find out the index. That's kind of silly. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/sh/drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions