diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2013-01-11 13:18:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-12 00:58:08 +0100 |
commit | fb0174723e578f9023f1237143fb81e75f470f60 (patch) | |
tree | 1e6ae57af3a98a9e635928dc1a0a79bfb1f8edc5 /drivers/net/ethernet/freescale | |
parent | ipv4: fib: fix a comment. (diff) | |
download | linux-fb0174723e578f9023f1237143fb81e75f470f60.tar.xz linux-fb0174723e578f9023f1237143fb81e75f470f60.zip |
gianfar: use more portable i/o accessors
in/out_be32 accessors are Power arch centric whereas
ioread/writebe32 are available in other arches. Also, unlike
in/out_be32, ioread/writebe32 expect non-volatile address arguments.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.h b/drivers/net/ethernet/freescale/gianfar.h index 1b6a67cf8bf6..91bb2de9ba8d 100644 --- a/drivers/net/ethernet/freescale/gianfar.h +++ b/drivers/net/ethernet/freescale/gianfar.h @@ -1136,16 +1136,16 @@ static inline int gfar_has_errata(struct gfar_private *priv, return priv->errata & err; } -static inline u32 gfar_read(volatile unsigned __iomem *addr) +static inline u32 gfar_read(unsigned __iomem *addr) { u32 val; - val = in_be32(addr); + val = ioread32be(addr); return val; } -static inline void gfar_write(volatile unsigned __iomem *addr, u32 val) +static inline void gfar_write(unsigned __iomem *addr, u32 val) { - out_be32(addr, val); + iowrite32be(val, addr); } static inline void gfar_write_filer(struct gfar_private *priv, |