diff options
-rw-r--r-- | drivers/video/nvidia/nv_local.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/nvidia/nv_local.h b/drivers/video/nvidia/nv_local.h index 9da320986f4c..afee284fc73c 100644 --- a/drivers/video/nvidia/nv_local.h +++ b/drivers/video/nvidia/nv_local.h | |||
@@ -95,6 +95,7 @@ | |||
95 | 95 | ||
96 | #define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2) | 96 | #define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2) |
97 | 97 | ||
98 | #ifdef __LITTLE_ENDIAN | ||
98 | #define reverse_order(l) \ | 99 | #define reverse_order(l) \ |
99 | do { \ | 100 | do { \ |
100 | u8 *a = (u8 *)(l); \ | 101 | u8 *a = (u8 *)(l); \ |
@@ -103,5 +104,8 @@ do { \ | |||
103 | *a = byte_rev[*a], a++; \ | 104 | *a = byte_rev[*a], a++; \ |
104 | *a = byte_rev[*a]; \ | 105 | *a = byte_rev[*a]; \ |
105 | } while(0) | 106 | } while(0) |
107 | #else | ||
108 | #define reverse_order(l) | ||
109 | #endif /* __LITTLE_ENDIAN */ | ||
106 | 110 | ||
107 | #endif /* __NV_LOCAL_H__ */ | 111 | #endif /* __NV_LOCAL_H__ */ |