SH: heartbeat: restore big-endian operation.
PATCH 2/7 SH: heartbeat: restore big-endian operation.
As of 37b7a97884ba64bf7d403351ac2a9476ab4f1bba we have to use the endianess-agnostic I/O accessor functions.
I have not tested this -- the board is situated in a remote data center.
Signed-off-by Thomas Schwinge <[email protected]>
Cc Paul Mundt <[email protected]>
--- arch/sh/drivers/heartbeat.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
arch/sh/drivers/heartbeat.c +6 -6
@@ -45,16 +45,16 @@ static inline void heartbeat_toggle_bit(struct heartbeat_data *hd,switch (hd->regsize) {case 32 : - new |=ioread32 (hd->base) & ~hd->mask; -iowrite32 (new, hd->base); + new |=__raw_readl (hd->base) & ~hd->mask; +__raw_writel (new, hd->base);break ;case 16 : - new |=ioread16 (hd->base) & ~hd->mask; -iowrite16 (new, hd->base); + new |=__raw_readw (hd->base) & ~hd->mask; +__raw_writew (new, hd->base);break ;default : - new |=ioread8 (hd->base) & ~hd->mask; -iowrite8 (new, hd->base); + new |=__raw_readb (hd->base) & ~hd->mask; +__raw_writeb (new, hd->base);break ; } }
Signature · 1 line
1.7.4.1