blob: fb870ceacfb644353a5f1e5870a279dc7f336254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -474,8 +474,7 @@ static int ath9k_init_soc_platform(struc
return ret;
}
- if (pdata->tx_gain_buffalo)
- ah->config.tx_gain_buffalo = true;
+ ah->config.tx_gain_buffalo = true;
return ret;
}
@@ -508,7 +507,7 @@ static int ath9k_init_softc(u16 devid, s
sc->tx99_power = MAX_RATE_POWER + 1;
init_waitqueue_head(&sc->tx_wait);
- if (!pdata || pdata->use_eeprom) {
+ if (!pdata) {
ah->ah_flags |= AH_USE_EEPROM;
sc->sc_ah->led_pin = -1;
} else {
--- a/include/linux/ath9k_platform.h
+++ b/include/linux/ath9k_platform.h
@@ -33,15 +33,12 @@ struct ath9k_platform_data {
bool endian_check;
bool is_clk_25mhz;
- bool tx_gain_buffalo;
bool disable_2ghz;
bool disable_5ghz;
int (*get_mac_revision)(void);
int (*external_reset)(void);
- bool use_eeprom;
-
int num_leds;
const struct gpio_led *leds;
};
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -687,7 +687,7 @@ static bool ath_pci_eeprom_read(struct a
struct ath_softc *sc = (struct ath_softc *) common->priv;
struct ath9k_platform_data *pdata = sc->dev->platform_data;
- if (pdata && !pdata->use_eeprom) {
+ if (pdata) {
if (off >= (ARRAY_SIZE(pdata->eeprom_data))) {
ath_err(common,
"%s: eeprom read failed, offset %08x is out of range\n",
|