amend "ath9k: Allow platform override without EEPROM override"
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 8 May 2014 11:48:38 +0000 (13:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 May 2014 19:56:33 +0000 (15:56 -0400)
Originally Helmut posted a v2 of the "ath9k: Allow platform override
without EEPROM override", but I had prematurely commited the original
as commit 552a515707a.  This commit restores the tree to what Helmut
intended with his v2 submission. -- JWL

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/pci.c

index 914dbc6b17208df991e92d3c3539508ea31f57ad..c1e82f779544741a86198792c8d39e7614ce019d 100644 (file)
@@ -686,7 +686,7 @@ static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data)
        struct ath_softc *sc = (struct ath_softc *) common->priv;
        struct ath9k_platform_data *pdata = sc->dev->platform_data;
 
-       if (pdata) {
+       if (pdata && !pdata->use_eeprom) {
                if (off >= (ARRAY_SIZE(pdata->eeprom_data))) {
                        ath_err(common,
                                "%s: eeprom read failed, offset %08x is out of range\n",