[MIPS] Ocelot 3: Fix large number of warnings.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+4 -2
+4 -2
arch/mips/momentum/ocelot_3/ocelot_3_fpga.h
··· 51 52 extern unsigned long ocelot_fpga_base; 53 54 - #define OCELOT_FPGA_WRITE(x, y) writeb(x, ocelot_fpga_base + OCELOT_3_REG_##y) 55 - #define OCELOT_FPGA_READ(x) readb(ocelot_fpga_base + OCELOT_3_REG_##x) 56 57 #endif
··· 51 52 extern unsigned long ocelot_fpga_base; 53 54 + #define __FPGA_REG_TO_ADDR(reg) \ 55 + ((void *) ocelot_fpga_base + OCELOT_3_REG_##reg) 56 + #define OCELOT_FPGA_WRITE(x, reg) writeb(x, __FPGA_REG_TO_ADDR(reg)) 57 + #define OCELOT_FPGA_READ(reg) readb(__FPGA_REG_TO_ADDR(reg)) 58 59 #endif