From d4446f7afebaa3c02b28340d3fb7b9ebbd5833c9 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 6 Feb 2002 17:51:21 -0500 Subject: [PATCH] de4x5 net driver endian-related fixes. Caught by Ralf and the mips crowd. --- drivers/net/de4x5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/de4x5.c b/drivers/net/de4x5.c index 3af726812573..4d79396ec151 100644 --- a/drivers/net/de4x5.c +++ b/drivers/net/de4x5.c @@ -3645,7 +3645,7 @@ de4x5_alloc_rx_buff(struct net_device *dev, int index, int len) tmp = virt_to_bus(p->data); i = ((tmp + ALIGN) & ~ALIGN) - tmp; skb_reserve(p, i); - lp->rx_ring[index].buf = tmp + i; + lp->rx_ring[index].buf = cpu_to_le32(tmp + i); ret = lp->rx_skb[index]; lp->rx_skb[index] = p; @@ -5616,7 +5616,7 @@ de4x5_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) if (!capable(CAP_NET_ADMIN)) return -EPERM; omr = inl(DE4X5_OMR); omr &= ~OMR_PR; - outb(omr, DE4X5_OMR); + outl(omr, DE4X5_OMR); dev->flags &= ~IFF_PROMISC; break; -- 2.39.5