diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-10-17 03:42:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-18 14:07:00 -0400 |
commit | 899a5f493a0135c5a676f75a53e70255df25a3e4 (patch) | |
tree | 9a66271a6a9e1c2ea5b5439ed5e3cede48715765 /drivers/net/wireless | |
parent | 68597ea8674bd6c8983abc2a73e1e707af85f38e (diff) |
rt2x00: rt2800pci: use separate firmware callbacks for SoC devices
Use empty firmware callbacks for SoC devices because those
don't require firmware.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index afd422faaf14..efc35b4dd078 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -164,7 +164,6 @@ static inline int rt2800pci_read_eeprom_efuse(struct rt2x00_dev *rt2x00dev) | |||
164 | { | 164 | { |
165 | return rt2800_read_eeprom_efuse(rt2x00dev); | 165 | return rt2800_read_eeprom_efuse(rt2x00dev); |
166 | } | 166 | } |
167 | #endif /* CONFIG_PCI */ | ||
168 | 167 | ||
169 | /* | 168 | /* |
170 | * Firmware functions | 169 | * Firmware functions |
@@ -206,6 +205,7 @@ static int rt2800pci_write_firmware(struct rt2x00_dev *rt2x00dev, | |||
206 | 205 | ||
207 | return 0; | 206 | return 0; |
208 | } | 207 | } |
208 | #endif /* CONFIG_PCI */ | ||
209 | 209 | ||
210 | /* | 210 | /* |
211 | * Device state switch handlers. | 211 | * Device state switch handlers. |
@@ -493,6 +493,34 @@ static int rt2800soc_read_eeprom(struct rt2x00_dev *rt2x00dev) | |||
493 | return 0; | 493 | return 0; |
494 | } | 494 | } |
495 | 495 | ||
496 | /* Firmware functions */ | ||
497 | static char *rt2800soc_get_firmware_name(struct rt2x00_dev *rt2x00dev) | ||
498 | { | ||
499 | WARN_ON_ONCE(1); | ||
500 | return NULL; | ||
501 | } | ||
502 | |||
503 | static int rt2800soc_load_firmware(struct rt2x00_dev *rt2x00dev, | ||
504 | const u8 *data, const size_t len) | ||
505 | { | ||
506 | WARN_ON_ONCE(1); | ||
507 | return 0; | ||
508 | } | ||
509 | |||
510 | static int rt2800soc_check_firmware(struct rt2x00_dev *rt2x00dev, | ||
511 | const u8 *data, const size_t len) | ||
512 | { | ||
513 | WARN_ON_ONCE(1); | ||
514 | return 0; | ||
515 | } | ||
516 | |||
517 | static int rt2800soc_write_firmware(struct rt2x00_dev *rt2x00dev, | ||
518 | const u8 *data, const size_t len) | ||
519 | { | ||
520 | WARN_ON_ONCE(1); | ||
521 | return 0; | ||
522 | } | ||
523 | |||
496 | static const struct ieee80211_ops rt2800soc_mac80211_ops = { | 524 | static const struct ieee80211_ops rt2800soc_mac80211_ops = { |
497 | .tx = rt2x00mac_tx, | 525 | .tx = rt2x00mac_tx, |
498 | .start = rt2x00mac_start, | 526 | .start = rt2x00mac_start, |
@@ -530,7 +558,7 @@ static const struct rt2800_ops rt2800soc_rt2800_ops = { | |||
530 | .regbusy_read = rt2x00mmio_regbusy_read, | 558 | .regbusy_read = rt2x00mmio_regbusy_read, |
531 | .read_eeprom = rt2800soc_read_eeprom, | 559 | .read_eeprom = rt2800soc_read_eeprom, |
532 | .hwcrypt_disabled = rt2800pci_hwcrypt_disabled, | 560 | .hwcrypt_disabled = rt2800pci_hwcrypt_disabled, |
533 | .drv_write_firmware = rt2800pci_write_firmware, | 561 | .drv_write_firmware = rt2800soc_write_firmware, |
534 | .drv_init_registers = rt2800mmio_init_registers, | 562 | .drv_init_registers = rt2800mmio_init_registers, |
535 | .drv_get_txwi = rt2800mmio_get_txwi, | 563 | .drv_get_txwi = rt2800mmio_get_txwi, |
536 | }; | 564 | }; |
@@ -543,9 +571,9 @@ static const struct rt2x00lib_ops rt2800soc_rt2x00_ops = { | |||
543 | .rxdone_tasklet = rt2800mmio_rxdone_tasklet, | 571 | .rxdone_tasklet = rt2800mmio_rxdone_tasklet, |
544 | .autowake_tasklet = rt2800mmio_autowake_tasklet, | 572 | .autowake_tasklet = rt2800mmio_autowake_tasklet, |
545 | .probe_hw = rt2800_probe_hw, | 573 | .probe_hw = rt2800_probe_hw, |
546 | .get_firmware_name = rt2800pci_get_firmware_name, | 574 | .get_firmware_name = rt2800soc_get_firmware_name, |
547 | .check_firmware = rt2800_check_firmware, | 575 | .check_firmware = rt2800soc_check_firmware, |
548 | .load_firmware = rt2800_load_firmware, | 576 | .load_firmware = rt2800soc_load_firmware, |
549 | .initialize = rt2x00mmio_initialize, | 577 | .initialize = rt2x00mmio_initialize, |
550 | .uninitialize = rt2x00mmio_uninitialize, | 578 | .uninitialize = rt2x00mmio_uninitialize, |
551 | .get_entry_state = rt2800mmio_get_entry_state, | 579 | .get_entry_state = rt2800mmio_get_entry_state, |