[ARM] make page_to_dma() highmem aware
[firefly-linux-kernel-4.4.55.git] / arch / arm / include / asm / memory.h
index ae472bc376d3fee167ea761995cbed3f1dcc24ab..85763db87449f4f4c62947e30a2b6b0cf9a43e9e 100644 (file)
@@ -188,6 +188,7 @@ static inline void *phys_to_virt(unsigned long x)
 #ifndef __virt_to_bus
 #define __virt_to_bus  __virt_to_phys
 #define __bus_to_virt  __phys_to_virt
+#define __pfn_to_bus(x)        ((x) << PAGE_SHIFT)
 #endif
 
 static inline __deprecated unsigned long virt_to_bus(void *x)