aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-02-18 09:55:59 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2016-02-22 11:55:42 -0500
commit9e0087e64e67cfe0b63b629add793a4aa019a629 (patch)
tree4f1c45977ea20b13b44c06ca03b26e0fe1f4598e
parent1475399207548333311e374446a113d4733b3878 (diff)
ARM: 8530/1: remove VIRT_TO_BUS
All drivers that are relevant for rpc or footbridge have stopped using virt_to_bus a while ago, so we can remove it and avoid some harmless randconfig warnings for drivers that we do not care about: drivers/atm/zatm.c: In function 'poll_rx': drivers/atm/zatm.c:401:18: warning: 'bus_to_virt' is deprecated [-Wdeprecated-declarations] skb = ((struct rx_buffer_head *) bus_to_virt(here[2]))->skb; FWIW, the remaining drivers using this are: ATM: firestream, zatm, ambassador, horizon ISDN: hisax/netjet V4L: STA2X11, zoran Net: Appletalk LTPC, Tulip DE4x5, Toshiba IrDA WAN: comtrol sv11, cosa, lanmedia, sealevel SCSI: DPT_I2O, buslogic VME: CA91C142 My best guess is that all of the above are so hopelessly obsolete that we are best off removing all of them form the kernel, but that can be done another time. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--arch/arm/include/asm/memory.h14
-rw-r--r--arch/arm/mach-footbridge/Kconfig1
3 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index cc95ff8f07cb..d67f1aa93213 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -572,7 +572,6 @@ config ARCH_RPC
572 select NEED_MACH_IO_H 572 select NEED_MACH_IO_H
573 select NEED_MACH_MEMORY_H 573 select NEED_MACH_MEMORY_H
574 select NO_IOPORT_MAP 574 select NO_IOPORT_MAP
575 select VIRT_TO_BUS
576 help 575 help
577 On the Acorn Risc-PC, Linux can support the internal IDE disk and 576 On the Acorn Risc-PC, Linux can support the internal IDE disk and
578 CD-ROM interface, serial and parallel port, and the floppy drive. 577 CD-ROM interface, serial and parallel port, and the floppy drive.
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index 51fc9b3b52ea..9427fd632552 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -318,20 +318,6 @@ static inline unsigned long __virt_to_idmap(unsigned long x)
318#define __bus_to_pfn(x) __phys_to_pfn(x) 318#define __bus_to_pfn(x) __phys_to_pfn(x)
319#endif 319#endif
320 320
321#ifdef CONFIG_VIRT_TO_BUS
322#define virt_to_bus virt_to_bus
323static inline __deprecated unsigned long virt_to_bus(void *x)
324{
325 return __virt_to_bus((unsigned long)x);
326}
327
328#define bus_to_virt bus_to_virt
329static inline __deprecated void *bus_to_virt(unsigned long x)
330{
331 return (void *)__bus_to_virt(x);
332}
333#endif
334
335/* 321/*
336 * Conversion between a struct page and a physical address. 322 * Conversion between a struct page and a physical address.
337 * 323 *
diff --git a/arch/arm/mach-footbridge/Kconfig b/arch/arm/mach-footbridge/Kconfig
index 07152d00fc50..cbbdd84cf49a 100644
--- a/arch/arm/mach-footbridge/Kconfig
+++ b/arch/arm/mach-footbridge/Kconfig
@@ -68,7 +68,6 @@ config ARCH_NETWINDER
68 select ISA 68 select ISA
69 select ISA_DMA 69 select ISA_DMA
70 select PCI 70 select PCI
71 select VIRT_TO_BUS
72 help 71 help
73 Say Y here if you intend to run this kernel on the Rebel.COM 72 Say Y here if you intend to run this kernel on the Rebel.COM
74 NetWinder. Information about this machine can be found at: 73 NetWinder. Information about this machine can be found at: