Commit f385cd87 authored by Dave Jiang's avatar Dave Jiang Committed by Russell King

[ARM PATCH] 2018/1: Fixed Patch 2017

Patch from Dave Jiang

Removed unnecessary parens in patch 2017 per RMK
parent 6f221cdc
......@@ -185,9 +185,9 @@ static inline __deprecated void *bus_to_virt(unsigned long x)
* We should really eliminate virt_to_bus() here - it's deprecated.
*/
#ifndef __arch_page_to_dma
#define page_to_dma(dev, page) ((dma_addr_t)__virt_to_bus(page_address(page)))
#define page_to_dma(dev, page) ((dma_addr_t)__virt_to_bus((unsigned long)page_address(page)))
#define dma_to_virt(dev, addr) (__bus_to_virt(addr))
#define virt_to_dma(dev, addr) (__virt_to_bus(addr))
#define virt_to_dma(dev, addr) (__virt_to_bus((unsigned long)(addr)))
#else
#define page_to_dma(dev, page) (__arch_page_to_dma(dev, page))
#define dma_to_virt(dev, addr) (__arch_dma_to_virt(dev, addr))
......
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