summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2015-03-18 16:53:10 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-03-22 23:50:12 +0100
commitaf9bfbdab8f1c5a4b51a45aaab4cfbcc318b8ae2 (patch)
tree058c4b9bcccf05ed0cb92b877ccab6729b9d4581 /drivers/net/can
parentcan: esd_usb2: Fix sparse warnings (diff)
downloadlinux-af9bfbdab8f1c5a4b51a45aaab4cfbcc318b8ae2.tar.xz
linux-af9bfbdab8f1c5a4b51a45aaab4cfbcc318b8ae2.zip
can: at91_can: use endian agnostic IO accessors
Change __raw accesors to endian agnostic versions to allow the driver to work properly on big endian systems. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/at91_can.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c
index eeb4b8b6b335..f4e40aa4d2a2 100644
--- a/drivers/net/can/at91_can.c
+++ b/drivers/net/can/at91_can.c
@@ -291,13 +291,13 @@ static inline unsigned int get_tx_echo_mb(const struct at91_priv *priv)
static inline u32 at91_read(const struct at91_priv *priv, enum at91_reg reg)
{
- return __raw_readl(priv->reg_base + reg);
+ return readl_relaxed(priv->reg_base + reg);
}
static inline void at91_write(const struct at91_priv *priv, enum at91_reg reg,
u32 value)
{
- __raw_writel(value, priv->reg_base + reg);
+ writel_relaxed(value, priv->reg_base + reg);
}
static inline void set_mb_mode_prio(const struct at91_priv *priv,