Skip to content
Snippets Groups Projects
Commit d19f7bef authored by Ralf Baechle's avatar Ralf Baechle
Browse files

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

parent ad0b3655
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,9 @@
extern unsigned long ocelot_fpga_base;
#define OCELOT_FPGA_WRITE(x, y) writeb(x, ocelot_fpga_base + OCELOT_3_REG_##y)
#define OCELOT_FPGA_READ(x) readb(ocelot_fpga_base + OCELOT_3_REG_##x)
#define __FPGA_REG_TO_ADDR(reg) \
((void *) ocelot_fpga_base + OCELOT_3_REG_##reg)
#define OCELOT_FPGA_WRITE(x, reg) writeb(x, __FPGA_REG_TO_ADDR(reg))
#define OCELOT_FPGA_READ(reg) readb(__FPGA_REG_TO_ADDR(reg))
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment