diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2018-02-19 13:01:23 +0000 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-03-19 15:33:05 +0100 |
commit | 70f6283a372bef685fd64564646a3b49a55be1ea (patch) | |
tree | d9055961d268b721f757ad19abc5d01d91a47e60 /arch/microblaze/include | |
parent | 97ccedd793ac490f1f16c57c275e9181f85ad1cb (diff) | |
download | linux-70f6283a372bef685fd64564646a3b49a55be1ea.tar.bz2 |
microblaze: Use generic pci_mmap_resource_range()
Commit f719582435 ("PCI: Add pci_mmap_resource_range() and use it for
ARM64") added this generic function with the intent of using it
everywhere and ultimately killing the old arch-specific implementations.
Let's get on with that eradication...
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/pci.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/microblaze/include/asm/pci.h b/arch/microblaze/include/asm/pci.h index 114b93488193..5de871eb4a59 100644 --- a/arch/microblaze/include/asm/pci.h +++ b/arch/microblaze/include/asm/pci.h @@ -47,9 +47,10 @@ extern int pci_proc_domain(struct pci_bus *bus); struct vm_area_struct; -/* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */ -#define HAVE_PCI_MMAP 1 -#define arch_can_pci_mmap_io() 1 +/* Tell PCI code what kind of PCI resource mappings we support */ +#define HAVE_PCI_MMAP 1 +#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 +#define arch_can_pci_mmap_io() 1 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t count); |