diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-01-29 23:20:48 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-01-31 22:19:47 +0100 |
commit | b923650b84068b74b6df838aa8f9b2a350171de6 (patch) | |
tree | d6d366da5427816210dc15c7c401e4a7910092c4 /lib/pci_iomap.c | |
parent | Merge tag 'driver-core-3.3-rc1-bugfixes' of git://git.kernel.org/pub/scm/linu... (diff) | |
download | linux-b923650b84068b74b6df838aa8f9b2a350171de6.tar.xz linux-b923650b84068b74b6df838aa8f9b2a350171de6.zip |
lib: add NO_GENERIC_PCI_IOPORT_MAP
Some architectures need to override the way
IO port mapping is done on PCI devices.
Supply a generic macro that calls
ioport_map, and make it possible for architectures
to override.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'lib/pci_iomap.c')
-rw-r--r-- | lib/pci_iomap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pci_iomap.c b/lib/pci_iomap.c index 4b0fdc22e688..0d83ea8a9605 100644 --- a/lib/pci_iomap.c +++ b/lib/pci_iomap.c @@ -34,7 +34,7 @@ void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) if (maxlen && len > maxlen) len = maxlen; if (flags & IORESOURCE_IO) - return ioport_map(start, len); + return __pci_ioport_map(dev, start, len); if (flags & IORESOURCE_MEM) { if (flags & IORESOURCE_CACHEABLE) return ioremap(start, len); |