diff options
Diffstat (limited to 'arch/arm/mach-ks8695/include/mach/memory.h')
-rw-r--r-- | arch/arm/mach-ks8695/include/mach/memory.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-ks8695/include/mach/memory.h b/arch/arm/mach-ks8695/include/mach/memory.h index dadbe66cb75c..8fbc4c76c38b 100644 --- a/arch/arm/mach-ks8695/include/mach/memory.h +++ b/arch/arm/mach-ks8695/include/mach/memory.h | |||
@@ -31,8 +31,8 @@ | |||
31 | /* Platform-bus mapping */ | 31 | /* Platform-bus mapping */ |
32 | extern struct bus_type platform_bus_type; | 32 | extern struct bus_type platform_bus_type; |
33 | #define is_lbus_device(dev) (dev && dev->bus == &platform_bus_type) | 33 | #define is_lbus_device(dev) (dev && dev->bus == &platform_bus_type) |
34 | #define __arch_dma_to_virt(dev, x) ({ is_lbus_device(dev) ? \ | 34 | #define __arch_dma_to_virt(dev, x) ({ (void *) (is_lbus_device(dev) ? \ |
35 | __phys_to_virt(x) : __bus_to_virt(x); }) | 35 | __phys_to_virt(x) : __bus_to_virt(x)); }) |
36 | #define __arch_virt_to_dma(dev, x) ({ is_lbus_device(dev) ? \ | 36 | #define __arch_virt_to_dma(dev, x) ({ is_lbus_device(dev) ? \ |
37 | (dma_addr_t)__virt_to_phys(x) : (dma_addr_t)__virt_to_bus(x); }) | 37 | (dma_addr_t)__virt_to_phys(x) : (dma_addr_t)__virt_to_bus(x); }) |
38 | #define __arch_page_to_dma(dev, x) __arch_virt_to_dma(dev, page_address(x)) | 38 | #define __arch_page_to_dma(dev, x) __arch_virt_to_dma(dev, page_address(x)) |