[MIPS] Jaguar ATX: Fix large number of warnings.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@@ -46,7 +46,9 @@
|
|||||||
|
|
||||||
extern unsigned long ja_fpga_base;
|
extern unsigned long ja_fpga_base;
|
||||||
|
|
||||||
#define JAGUAR_FPGA_WRITE(x,y) writeb(x, ja_fpga_base + JAGUAR_ATX_REG_##y)
|
#define __FPGA_REG_TO_ADDR(reg) \
|
||||||
#define JAGUAR_FPGA_READ(x) readb(ja_fpga_base + JAGUAR_ATX_REG_##x)
|
((void *) ja_fpga_base + JAGUAR_ATX_REG_##reg)
|
||||||
|
#define JAGUAR_FPGA_WRITE(x, reg) writeb(x, __FPGA_REG_TO_ADDR(reg))
|
||||||
|
#define JAGUAR_FPGA_READ(reg) readb(__FPGA_REG_TO_ADDR(reg))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user