Changed length parameter in SPI methods to be a byte length, rather than

a word length.
This commit is contained in:
Michael Brown
2006-12-04 16:09:59 +00:00
parent 931f94dca3
commit dc06c895fc
5 changed files with 15 additions and 21 deletions

View File

@@ -276,7 +276,7 @@ static void rtl_read_mac ( struct rtl8139_nic *rtl, uint8_t *mac_addr ) {
DBG ( "MAC address is " );
for ( i = EE_MAC ; i < ( EE_MAC + ( ETH_ALEN / 2 ) ) ; i++ ) {
device->type->read ( device, i, mac_addr, 1 );
device->type->read ( device, i, mac_addr, 2 );
DBG ( "%02x%02x", mac_addr[0], mac_addr[1] );
mac_addr += 2;
}