diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-09-07 14:07:11 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 20:04:06 -0500 |
commit | 25ff79443cbfa924b8df1d4a8a0fbff83816938a (patch) | |
tree | e7a9ac5cb39449b55d132c0838f7d866bc7d703c /arch/mips/include | |
parent | ba904f0649357a3cbd67e752d30898c42b1fc91a (diff) | |
download | linux-stable-25ff79443cbfa924b8df1d4a8a0fbff83816938a.tar.gz linux-stable-25ff79443cbfa924b8df1d4a8a0fbff83816938a.tar.bz2 linux-stable-25ff79443cbfa924b8df1d4a8a0fbff83816938a.zip |
of: implement pci_address_to_pio as weak function
Implement pci_address_to_pio as weak function to remove the dependency on
asm/prom.h. This is in preparation to make prom.h optional.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Cc: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/prom.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/mips/include/asm/prom.h b/arch/mips/include/asm/prom.h index e3dbd0e0608e..ccd2b75f152c 100644 --- a/arch/mips/include/asm/prom.h +++ b/arch/mips/include/asm/prom.h @@ -19,17 +19,6 @@ extern void device_tree_init(void); -static inline unsigned long pci_address_to_pio(phys_addr_t address) -{ - /* - * The ioport address can be directly used by inX() / outX() - */ - BUG_ON(address > IO_SPACE_LIMIT); - - return (unsigned long) address; -} -#define pci_address_to_pio pci_address_to_pio - struct boot_param_header; extern void __dt_setup_arch(struct boot_param_header *bph); |