.. | .. |
---|
247 | 247 | DP83822_ENERGY_DET_INT_EN | |
---|
248 | 248 | DP83822_LINK_QUAL_INT_EN); |
---|
249 | 249 | |
---|
250 | | - if (!dp83822->fx_enabled) |
---|
| 250 | + /* Private data pointer is NULL on DP83825/26 */ |
---|
| 251 | + if (!dp83822 || !dp83822->fx_enabled) |
---|
251 | 252 | misr_status |= DP83822_ANEG_COMPLETE_INT_EN | |
---|
252 | 253 | DP83822_DUP_MODE_CHANGE_INT_EN | |
---|
253 | 254 | DP83822_SPEED_CHANGED_INT_EN; |
---|
.. | .. |
---|
267 | 268 | DP83822_PAGE_RX_INT_EN | |
---|
268 | 269 | DP83822_EEE_ERROR_CHANGE_INT_EN); |
---|
269 | 270 | |
---|
270 | | - if (!dp83822->fx_enabled) |
---|
| 271 | + /* Private data pointer is NULL on DP83825/26 */ |
---|
| 272 | + if (!dp83822 || !dp83822->fx_enabled) |
---|
271 | 273 | misr_status |= DP83822_ANEG_ERR_INT_EN | |
---|
272 | 274 | DP83822_WOL_PKT_INT_EN; |
---|
273 | 275 | |
---|