Message ID | 201502122211.28752.linux@rainbow-software.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/drivers/video/fbdev/gxt4500.c +++ b/drivers/video/fbdev/gxt4500.c @@ -137,8 +137,8 @@ static const unsigned char watfmt[] = { /* Colormap array; 1k entries of 4 bytes each */ #define CMAP 0x6000 -#define readreg(par, reg) readl((par)->regs + (reg)) -#define writereg(par, reg, val) writel((val), (par)->regs + (reg)) +#define readreg(par, reg) be32_to_cpu(readl((par)->regs + (reg))) +#define writereg(par, reg, val) writel(cpu_to_be32(val), (par)->regs + (reg)) struct gxt4500_par { void __iomem *regs;