Commit 2ac066ce authored by Russell King's avatar Russell King

[ARM] Deprecate virt_to_bus/bus_to_virt.

These macros don't take account of which bus is actually required,
so they should not be used in new drivers; in fact, new drivers
should use the DMA API.
parent c26ba334
...@@ -108,10 +108,18 @@ static inline void *phys_to_virt(unsigned long x) ...@@ -108,10 +108,18 @@ static inline void *phys_to_virt(unsigned long x)
/* /*
* Virtual <-> DMA view memory address translations * Virtual <-> DMA view memory address translations
* Again, these are *only* valid on the kernel direct mapped RAM * Again, these are *only* valid on the kernel direct mapped RAM
* memory. Use of these is *deprecated*. * memory. Use of these is *deprecated* (and that doesn't mean
* use the __ prefixed forms instead.) See dma-mapping.h.
*/ */
#define virt_to_bus(x) (__virt_to_bus((unsigned long)(x))) static inline __deprecated unsigned long virt_to_bus(void *x)
#define bus_to_virt(x) ((void *)(__bus_to_virt((unsigned long)(x)))) {
return __virt_to_bus((unsigned long)x);
}
static inline __deprecated void *bus_to_virt(unsigned long x)
{
return (void *)__bus_to_virt(x);
}
/* /*
* Conversion between a struct page and a physical address. * Conversion between a struct page and a physical address.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment