|
@@ -198,7 +198,6 @@ static int realtek_init_eeprom ( struct net_device *netdev ) {
|
198
|
198
|
DBGC ( rtl, "REALTEK %p EEPROM is a 93C46\n", rtl );
|
199
|
199
|
init_at93c46 ( &rtl->eeprom, 16 );
|
200
|
200
|
}
|
201
|
|
- rtl->eeprom.bus = &rtl->spibit.bus;
|
202
|
201
|
|
203
|
202
|
/* Check for EEPROM presence. Some onboard NICs will have no
|
204
|
203
|
* EEPROM connected, with the BIOS being responsible for
|
|
@@ -1089,6 +1088,7 @@ static void realtek_detect ( struct realtek_nic *rtl ) {
|
1089
|
1088
|
rtl );
|
1090
|
1089
|
rtl->legacy = 1;
|
1091
|
1090
|
}
|
|
1091
|
+ rtl->eeprom.bus = &rtl->spibit.bus;
|
1092
|
1092
|
}
|
1093
|
1093
|
}
|
1094
|
1094
|
|
|
@@ -1136,7 +1136,8 @@ static int realtek_probe ( struct pci_device *pci ) {
|
1136
|
1136
|
realtek_detect ( rtl );
|
1137
|
1137
|
|
1138
|
1138
|
/* Initialise EEPROM */
|
1139
|
|
- if ( ( rc = realtek_init_eeprom ( netdev ) ) == 0 ) {
|
|
1139
|
+ if ( rtl->eeprom.bus &&
|
|
1140
|
+ ( ( rc = realtek_init_eeprom ( netdev ) ) == 0 ) ) {
|
1140
|
1141
|
|
1141
|
1142
|
/* Read MAC address from EEPROM */
|
1142
|
1143
|
if ( ( rc = nvs_read ( &rtl->eeprom.nvs, RTL_EEPROM_MAC,
|