diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-07 22:21:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-07 22:21:56 -0500 |
commit | 7677ced48e2bbbb8d847d34f37e5d96d2b0e41e4 (patch) | |
tree | 0a859f403c02eb854d9ffa11bd17f77056891d07 /drivers/net/b44.c | |
parent | 21d37bbc65e39a26856de6b14be371ff24e0d03f (diff) | |
parent | ac38dfc39e7684f55174742e5f0d6c5a0093bbf6 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (116 commits)
sk98lin: planned removal
AT91: MACB support
sky2: version 1.12
sky2: add new chip ids
sky2: Yukon Extreme support
sky2: safer transmit timeout
sky2: TSO support for EC_U
sky2: use dev_err for error reports
sky2: add Wake On Lan support
fix unaligned exception in /drivers/net/wireless/orinoco.c
Remove unused kernel config option DLCI_COUNT
z85230: spinlock logic
mips: declance: Driver model for the PMAD-A
Spidernet: Rework RX linked list
NET: turn local_save_flags() + local_irq_disable() into local_irq_save()
NET-3c59x: turn local_save_flags() + local_irq_disable() into local_irq_save()
hp100: convert pci_module_init() to pci_register_driver()
NetXen: Added ethtool support for user level tools.
NetXen: Firmware crb init changes.
maintainers: add atl1 maintainers
...
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r-- | drivers/net/b44.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 303a8d94ad4b..5ff7882297d6 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -721,7 +721,7 @@ static void b44_recycle_rx(struct b44 *bp, int src_idx, u32 dest_idx_unmasked) | |||
721 | struct ring_info *src_map, *dest_map; | 721 | struct ring_info *src_map, *dest_map; |
722 | struct rx_header *rh; | 722 | struct rx_header *rh; |
723 | int dest_idx; | 723 | int dest_idx; |
724 | u32 ctrl; | 724 | __le32 ctrl; |
725 | 725 | ||
726 | dest_idx = dest_idx_unmasked & (B44_RX_RING_SIZE - 1); | 726 | dest_idx = dest_idx_unmasked & (B44_RX_RING_SIZE - 1); |
727 | dest_desc = &bp->rx_ring[dest_idx]; | 727 | dest_desc = &bp->rx_ring[dest_idx]; |
@@ -783,7 +783,7 @@ static int b44_rx(struct b44 *bp, int budget) | |||
783 | RX_PKT_BUF_SZ, | 783 | RX_PKT_BUF_SZ, |
784 | PCI_DMA_FROMDEVICE); | 784 | PCI_DMA_FROMDEVICE); |
785 | rh = (struct rx_header *) skb->data; | 785 | rh = (struct rx_header *) skb->data; |
786 | len = cpu_to_le16(rh->len); | 786 | len = le16_to_cpu(rh->len); |
787 | if ((len > (RX_PKT_BUF_SZ - bp->rx_offset)) || | 787 | if ((len > (RX_PKT_BUF_SZ - bp->rx_offset)) || |
788 | (rh->flags & cpu_to_le16(RX_FLAG_ERRORS))) { | 788 | (rh->flags & cpu_to_le16(RX_FLAG_ERRORS))) { |
789 | drop_it: | 789 | drop_it: |
@@ -799,7 +799,7 @@ static int b44_rx(struct b44 *bp, int budget) | |||
799 | do { | 799 | do { |
800 | udelay(2); | 800 | udelay(2); |
801 | barrier(); | 801 | barrier(); |
802 | len = cpu_to_le16(rh->len); | 802 | len = le16_to_cpu(rh->len); |
803 | } while (len == 0 && i++ < 5); | 803 | } while (len == 0 && i++ < 5); |
804 | if (len == 0) | 804 | if (len == 0) |
805 | goto drop_it; | 805 | goto drop_it; |
@@ -2061,7 +2061,7 @@ out: | |||
2061 | static int b44_read_eeprom(struct b44 *bp, u8 *data) | 2061 | static int b44_read_eeprom(struct b44 *bp, u8 *data) |
2062 | { | 2062 | { |
2063 | long i; | 2063 | long i; |
2064 | u16 *ptr = (u16 *) data; | 2064 | __le16 *ptr = (__le16 *) data; |
2065 | 2065 | ||
2066 | for (i = 0; i < 128; i += 2) | 2066 | for (i = 0; i < 128; i += 2) |
2067 | ptr[i / 2] = cpu_to_le16(readw(bp->regs + 4096 + i)); | 2067 | ptr[i / 2] = cpu_to_le16(readw(bp->regs + 4096 + i)); |