diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 27703a5e48d6..f69ef5d48c7b 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -633,7 +633,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, | |||
633 | ath_read_cachesize(common, &csz); | 633 | ath_read_cachesize(common, &csz); |
634 | common->cachelsz = csz << 2; /* convert to bytes */ | 634 | common->cachelsz = csz << 2; /* convert to bytes */ |
635 | 635 | ||
636 | if (pdata->eeprom_name) { | 636 | if (pdata && pdata->eeprom_name) { |
637 | ret = ath9k_eeprom_request(sc, pdata->eeprom_name); | 637 | ret = ath9k_eeprom_request(sc, pdata->eeprom_name); |
638 | if (ret) | 638 | if (ret) |
639 | goto err_eeprom; | 639 | goto err_eeprom; |