diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-09-07 15:07:11 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 21:04:06 -0400 |
commit | 25ff79443cbfa924b8df1d4a8a0fbff83816938a (patch) | |
tree | e7a9ac5cb39449b55d132c0838f7d866bc7d703c /arch/x86/kernel | |
parent | ba904f0649357a3cbd67e752d30898c42b1fc91a (diff) |
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/x86/kernel')
-rw-r--r-- | arch/x86/kernel/devicetree.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index 679d676a30d7..cffd07368547 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c | |||
@@ -27,16 +27,6 @@ char __initdata cmd_line[COMMAND_LINE_SIZE]; | |||
27 | 27 | ||
28 | int __initdata of_ioapic; | 28 | int __initdata of_ioapic; |
29 | 29 | ||
30 | unsigned long pci_address_to_pio(phys_addr_t address) | ||
31 | { | ||
32 | /* | ||
33 | * The ioport address can be directly used by inX / outX | ||
34 | */ | ||
35 | BUG_ON(address >= (1 << 16)); | ||
36 | return (unsigned long)address; | ||
37 | } | ||
38 | EXPORT_SYMBOL_GPL(pci_address_to_pio); | ||
39 | |||
40 | void __init early_init_dt_scan_chosen_arch(unsigned long node) | 30 | void __init early_init_dt_scan_chosen_arch(unsigned long node) |
41 | { | 31 | { |
42 | BUG(); | 32 | BUG(); |