ath9k: simplify the code-paths when not using the built-in EEPROM
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 9 Jul 2016 23:09:55 +0000 (01:09 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 19 Jul 2016 17:57:14 +0000 (20:57 +0300)
commit56398519969365351e70de5c1226f32ebaaadbd3
tree21445329af74438534c21a9ff1b5cd70a470803f
parent42e54152e7070f53294fc41d7f12749ba8bf9aab
ath9k: simplify the code-paths when not using the built-in EEPROM

There were two paths in the code for "external" eeprom sources. The code
in eeprom.c only handled the cases where the eeprom data was loaded via
request_firmware. ahb.c and pci.c on the other hand had some duplicate
code which was only used when the eeprom data was passed via
ath9k_platform_data.
With this change all eeprom data handling is now unified in eeprom.c.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ahb.c
drivers/net/wireless/ath/ath9k/eeprom.c
drivers/net/wireless/ath/ath9k/pci.c