mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[MIPS] Jaguar ATX: Fix large number of warnings.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
3d0f82aea1
commit
b86b30f81c
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue