Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] 3660/1: Remove legacy defines

Patch from Andrew Victor

Remove the remaining legacy __virt_to_bus__is_a_macro and
__bus_to_virt__is_a_macro defines in some ARM platforms.

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Andrew Victor and committed by
Russell King
313f53e3 2b8b4913

+2 -8
-2
include/asm-arm/arch-at91rm9200/memory.h
··· 33 33 * bus_to_virt: Used to convert an address for DMA operations 34 34 * to an address that the kernel can use. 35 35 */ 36 - #define __virt_to_bus__is_a_macro 37 36 #define __virt_to_bus(x) __virt_to_phys(x) 38 - #define __bus_to_virt__is_a_macro 39 37 #define __bus_to_virt(x) __phys_to_virt(x) 40 38 41 39 #endif
-2
include/asm-arm/arch-h720x/memory.h
··· 23 23 * There is something to do here later !, Mar 2000, Jungjun Kim 24 24 */ 25 25 26 - #define __virt_to_bus__is_a_macro 27 26 #define __virt_to_bus(x) __virt_to_phys(x) 28 - #define __bus_to_virt__is_a_macro 29 27 #define __bus_to_virt(x) __phys_to_virt(x) 30 28 31 29 #endif
+2 -4
include/asm-arm/arch-imx/memory.h
··· 30 30 * bus_to_virt: Used to convert an address for DMA operations 31 31 * to an address that the kernel can use. 32 32 */ 33 - #define __virt_to_bus__is_a_macro 34 - #define __virt_to_bus(x) (x - PAGE_OFFSET + PHYS_OFFSET) 35 - #define __bus_to_virt__is_a_macro 36 - #define __bus_to_virt(x) (x - PHYS_OFFSET + PAGE_OFFSET) 33 + #define __virt_to_bus(x) (x - PAGE_OFFSET + PHYS_OFFSET) 34 + #define __bus_to_virt(x) (x - PHYS_OFFSET + PAGE_OFFSET) 37 35 38 36 #endif