提交 fb017472 编写于 作者: K Kim Phillips 提交者: David S. Miller

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: NKim Phillips <kim.phillips@freescale.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 28a28283
...@@ -1136,16 +1136,16 @@ static inline int gfar_has_errata(struct gfar_private *priv, ...@@ -1136,16 +1136,16 @@ static inline int gfar_has_errata(struct gfar_private *priv,
return priv->errata & err; return priv->errata & err;
} }
static inline u32 gfar_read(volatile unsigned __iomem *addr) static inline u32 gfar_read(unsigned __iomem *addr)
{ {
u32 val; u32 val;
val = in_be32(addr); val = ioread32be(addr);
return val; 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, static inline void gfar_write_filer(struct gfar_private *priv,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册