Skip to content

Commit

Permalink
[ARM] 3660/1: Remove legacy defines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Victor authored and Russell King committed Jun 28, 2006
1 parent 2b8b491 commit 313f53e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions include/asm-arm/arch-at91rm9200/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
* bus_to_virt: Used to convert an address for DMA operations
* to an address that the kernel can use.
*/
#define __virt_to_bus__is_a_macro
#define __virt_to_bus(x) __virt_to_phys(x)
#define __bus_to_virt__is_a_macro
#define __bus_to_virt(x) __phys_to_virt(x)

#endif
2 changes: 0 additions & 2 deletions include/asm-arm/arch-h720x/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
* There is something to do here later !, Mar 2000, Jungjun Kim
*/

#define __virt_to_bus__is_a_macro
#define __virt_to_bus(x) __virt_to_phys(x)
#define __bus_to_virt__is_a_macro
#define __bus_to_virt(x) __phys_to_virt(x)

#endif
6 changes: 2 additions & 4 deletions include/asm-arm/arch-imx/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
* bus_to_virt: Used to convert an address for DMA operations
* to an address that the kernel can use.
*/
#define __virt_to_bus__is_a_macro
#define __virt_to_bus(x) (x - PAGE_OFFSET + PHYS_OFFSET)
#define __bus_to_virt__is_a_macro
#define __bus_to_virt(x) (x - PHYS_OFFSET + PAGE_OFFSET)
#define __virt_to_bus(x) (x - PAGE_OFFSET + PHYS_OFFSET)
#define __bus_to_virt(x) (x - PHYS_OFFSET + PAGE_OFFSET)

#endif

0 comments on commit 313f53e

Please sign in to comment.