diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-01-29 23:29:10 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-01-31 22:21:19 +0100 |
commit | 1e05b62ae4bd4c1209229de367b0989b39644f88 (patch) | |
tree | 471e9008bd8a4501c89cbd113b209f46f2d72285 /arch/sh/drivers/pci/pci.c | |
parent | mips: use the the PCI controller's io_map_base (diff) | |
download | linux-1e05b62ae4bd4c1209229de367b0989b39644f88.tar.xz linux-1e05b62ae4bd4c1209229de367b0989b39644f88.zip |
sh: use the the PCI channels's io_map_base
commit 43db595e8b5d78ce5ad2feab719814a76e3ad2e5
(sh: switch to GENERIC_PCI_IOMAP)
failed to take into account the PCI channels's
io_map_base for mapping IO BARs.
This also caused a new warning on sh.
Fix this, without re-introducing code duplication,
by setting NO_GENERIC_PCI_IOPORT_MAP
and supplying a sh-specific __pci_ioport_map.
Reported-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'arch/sh/drivers/pci/pci.c')
-rw-r--r-- | arch/sh/drivers/pci/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index 8f18dd090a66..1e7b0e2e764d 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c @@ -356,8 +356,8 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, #ifndef CONFIG_GENERIC_IOMAP -static void __iomem *ioport_map_pci(struct pci_dev *dev, - unsigned long port, unsigned int nr) +void __iomem *__pci_ioport_map(struct pci_dev *dev, + unsigned long port, unsigned int nr) { struct pci_channel *chan = dev->sysdata; |