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/macsonic.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/macsonic.c')
-rw-r--r-- | drivers/net/macsonic.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/macsonic.c b/drivers/net/macsonic.c index 393d995f1919..24f6050fbf33 100644 --- a/drivers/net/macsonic.c +++ b/drivers/net/macsonic.c | |||
@@ -121,16 +121,12 @@ enum macsonic_type { | |||
121 | * For reversing the PROM address | 121 | * For reversing the PROM address |
122 | */ | 122 | */ |
123 | 123 | ||
124 | static unsigned char nibbletab[] = {0, 8, 4, 12, 2, 10, 6, 14, | ||
125 | 1, 9, 5, 13, 3, 11, 7, 15}; | ||
126 | |||
127 | static inline void bit_reverse_addr(unsigned char addr[6]) | 124 | static inline void bit_reverse_addr(unsigned char addr[6]) |
128 | { | 125 | { |
129 | int i; | 126 | int i; |
130 | 127 | ||
131 | for(i = 0; i < 6; i++) | 128 | for(i = 0; i < 6; i++) |
132 | addr[i] = ((nibbletab[addr[i] & 0xf] << 4) | | 129 | addr[i] = bitrev8(addr[i]); |
133 | nibbletab[(addr[i] >> 4) &0xf]); | ||
134 | } | 130 | } |
135 | 131 | ||
136 | int __init macsonic_init(struct net_device* dev) | 132 | int __init macsonic_init(struct net_device* dev) |