PCI: Add helpers to request/release memory and I/O regions
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 7 Jun 2016 07:44:01 +0000 (09:44 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Jun 2016 22:09:06 +0000 (17:09 -0500)
commitbe9d2e8927cef02076bb7b5b2637cd9f4be2e8df
tree6acf7378fc70285df0a0882129b6fd752c592fb6
parent644a544fd9bcd65f524768b85ab22f62ed08e107
PCI: Add helpers to request/release memory and I/O regions

Add helpers to request and release a device's memory or I/O regions.

With these helpers in place, one does not need to select a device's memory
or I/O regions with pci_select_bars() prior to requesting or releasing
them.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/linux/pci.h