driver/net: fix bus endianess access in ethoc.c
Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
478d9ffe45
commit
ffce345bf6
|
@ -192,12 +192,12 @@ struct ethoc_bd {
|
||||||
|
|
||||||
static inline u32 ethoc_read(struct ethoc *dev, loff_t offset)
|
static inline u32 ethoc_read(struct ethoc *dev, loff_t offset)
|
||||||
{
|
{
|
||||||
return readl(dev->iobase + offset);
|
return ioread32be(dev->iobase + offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void ethoc_write(struct ethoc *dev, loff_t offset, u32 data)
|
static inline void ethoc_write(struct ethoc *dev, loff_t offset, u32 data)
|
||||||
{
|
{
|
||||||
writel(data, dev->iobase + offset);
|
iowrite32be(data, dev->iobase + offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void ethoc_read_bd(struct ethoc *dev, int index,
|
static inline void ethoc_read_bd(struct ethoc *dev, int index,
|
||||||
|
|
Loading…
Reference in New Issue