diff options
Diffstat (limited to 'drivers/net/tulip/dmfe.c')
-rw-r--r-- | drivers/net/tulip/dmfe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c index 04539fca270f..7b899702ceb9 100644 --- a/drivers/net/tulip/dmfe.c +++ b/drivers/net/tulip/dmfe.c | |||
@@ -1802,7 +1802,7 @@ static void dmfe_parse_srom(struct dmfe_board_info * db) | |||
1802 | if ( ( (int) srom[18] & 0xff) == SROM_V41_CODE) { | 1802 | if ( ( (int) srom[18] & 0xff) == SROM_V41_CODE) { |
1803 | /* SROM V4.01 */ | 1803 | /* SROM V4.01 */ |
1804 | /* Get NIC support media mode */ | 1804 | /* Get NIC support media mode */ |
1805 | db->NIC_capability = le16_to_cpup(srom + 34); | 1805 | db->NIC_capability = le16_to_cpup((__le16 *)srom + 34/2); |
1806 | db->PHY_reg4 = 0; | 1806 | db->PHY_reg4 = 0; |
1807 | for (tmp_reg = 1; tmp_reg < 0x10; tmp_reg <<= 1) { | 1807 | for (tmp_reg = 1; tmp_reg < 0x10; tmp_reg <<= 1) { |
1808 | switch( db->NIC_capability & tmp_reg ) { | 1808 | switch( db->NIC_capability & tmp_reg ) { |
@@ -1814,7 +1814,8 @@ static void dmfe_parse_srom(struct dmfe_board_info * db) | |||
1814 | } | 1814 | } |
1815 | 1815 | ||
1816 | /* Media Mode Force or not check */ | 1816 | /* Media Mode Force or not check */ |
1817 | dmfe_mode = le32_to_cpup(srom + 34) & le32_to_cpup(srom + 36); | 1817 | dmfe_mode = le32_to_cpup((__le32 *)srom + 34/4) & |
1818 | le32_to_cpup((__le32 *)srom + 36/4); | ||
1818 | switch(dmfe_mode) { | 1819 | switch(dmfe_mode) { |
1819 | case 0x4: dmfe_media_mode = DMFE_100MHF; break; /* 100MHF */ | 1820 | case 0x4: dmfe_media_mode = DMFE_100MHF; break; /* 100MHF */ |
1820 | case 0x2: dmfe_media_mode = DMFE_10MFD; break; /* 10MFD */ | 1821 | case 0x2: dmfe_media_mode = DMFE_10MFD; break; /* 10MFD */ |