Skip to content

Commit

Permalink
[MIPS] Jaguar ATX: Fix large number of warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Feb 6, 2007
1 parent 3d0f82a commit b86b30f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@

extern unsigned long ja_fpga_base;

#define JAGUAR_FPGA_WRITE(x,y) writeb(x, ja_fpga_base + JAGUAR_ATX_REG_##y)
#define JAGUAR_FPGA_READ(x) readb(ja_fpga_base + JAGUAR_ATX_REG_##x)
#define __FPGA_REG_TO_ADDR(reg) \
((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

0 comments on commit b86b30f

Please sign in to comment.