Commit ea70003b authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] Amiga PCMCIA Ethernet clean up

Amiga PCMCIA Ethernet: Use le16_to_cpus() instead of hardcoded byteswap (from
Kars de Jong)
parent 80cae4c5
......@@ -111,9 +111,6 @@ static int init_pcmcia(void);
#define MANUAL_HWADDR5 0x9a
*/
#define WORDSWAP(a) ( (((a)>>8)&0xff) | ((a)<<8) )
static const char version[] =
"apne.c:v1.1 7/10/98 Alain Malek (Alain.Malek@cryogen.ch)\n";
......@@ -402,10 +399,9 @@ apne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_pa
}
outb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr. */
hdr->count = WORDSWAP(hdr->count);
ei_status.dmaing &= ~0x01;
le16_to_cpus(&hdr->count);
}
/* Block input and output, similar to the Crynwr packet driver. If you
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment