From: Al Viro Date: Sun, 16 Mar 2008 22:22:34 +0000 (+0000) Subject: more misannotations: ne2k-pci X-Git-Tag: v2.6.25-rc7~54^2~38 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3b5e26f7b07f5e537cef705de79174025ecd383c;p=linux-2.6-omap-h63xx.git more misannotations: ne2k-pci Signed-off-by: Al Viro Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c index b569c90da4b..de0de744a8f 100644 --- a/drivers/net/ne2k-pci.c +++ b/drivers/net/ne2k-pci.c @@ -535,9 +535,9 @@ static void ne2k_pci_block_input(struct net_device *dev, int count, if (count & 3) { buf += count & ~3; if (count & 2) { - u16 *b = (u16 *)buf; + __le16 *b = (__le16 *)buf; - *b++ = le16_to_cpu(inw(NE_BASE + NE_DATAPORT)); + *b++ = cpu_to_le16(inw(NE_BASE + NE_DATAPORT)); buf = (char *)b; } if (count & 1) @@ -600,9 +600,9 @@ static void ne2k_pci_block_output(struct net_device *dev, int count, if (count & 3) { buf += count & ~3; if (count & 2) { - u16 *b = (u16 *)buf; + __le16 *b = (__le16 *)buf; - outw(cpu_to_le16(*b++), NE_BASE + NE_DATAPORT); + outw(le16_to_cpu(*b++), NE_BASE + NE_DATAPORT); buf = (char *)b; } }