diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 7b8d51f58038..5a2dfe87c6b6 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -470,27 +470,10 @@ static int rt2800usb_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
470 | return rt2800_validate_eeprom(rt2x00dev); | 470 | return rt2800_validate_eeprom(rt2x00dev); |
471 | } | 471 | } |
472 | 472 | ||
473 | static const struct rt2800_ops rt2800usb_rt2800_ops = { | ||
474 | .register_read = rt2x00usb_register_read, | ||
475 | .register_read_lock = rt2x00usb_register_read_lock, | ||
476 | .register_write = rt2x00usb_register_write, | ||
477 | .register_write_lock = rt2x00usb_register_write_lock, | ||
478 | |||
479 | .register_multiread = rt2x00usb_register_multiread, | ||
480 | .register_multiwrite = rt2x00usb_register_multiwrite, | ||
481 | |||
482 | .regbusy_read = rt2x00usb_regbusy_read, | ||
483 | |||
484 | .drv_write_firmware = rt2800usb_write_firmware, | ||
485 | .drv_init_registers = rt2800usb_init_registers, | ||
486 | }; | ||
487 | |||
488 | static int rt2800usb_probe_hw(struct rt2x00_dev *rt2x00dev) | 473 | static int rt2800usb_probe_hw(struct rt2x00_dev *rt2x00dev) |
489 | { | 474 | { |
490 | int retval; | 475 | int retval; |
491 | 476 | ||
492 | rt2x00dev->priv = (void *)&rt2800usb_rt2800_ops; | ||
493 | |||
494 | /* | 477 | /* |
495 | * Allocate eeprom data. | 478 | * Allocate eeprom data. |
496 | */ | 479 | */ |
@@ -556,6 +539,18 @@ static const struct ieee80211_ops rt2800usb_mac80211_ops = { | |||
556 | .ampdu_action = rt2800_ampdu_action, | 539 | .ampdu_action = rt2800_ampdu_action, |
557 | }; | 540 | }; |
558 | 541 | ||
542 | static const struct rt2800_ops rt2800usb_rt2800_ops = { | ||
543 | .register_read = rt2x00usb_register_read, | ||
544 | .register_read_lock = rt2x00usb_register_read_lock, | ||
545 | .register_write = rt2x00usb_register_write, | ||
546 | .register_write_lock = rt2x00usb_register_write_lock, | ||
547 | .register_multiread = rt2x00usb_register_multiread, | ||
548 | .register_multiwrite = rt2x00usb_register_multiwrite, | ||
549 | .regbusy_read = rt2x00usb_regbusy_read, | ||
550 | .drv_write_firmware = rt2800usb_write_firmware, | ||
551 | .drv_init_registers = rt2800usb_init_registers, | ||
552 | }; | ||
553 | |||
559 | static const struct rt2x00lib_ops rt2800usb_rt2x00_ops = { | 554 | static const struct rt2x00lib_ops rt2800usb_rt2x00_ops = { |
560 | .probe_hw = rt2800usb_probe_hw, | 555 | .probe_hw = rt2800usb_probe_hw, |
561 | .get_firmware_name = rt2800usb_get_firmware_name, | 556 | .get_firmware_name = rt2800usb_get_firmware_name, |
@@ -619,6 +614,7 @@ static const struct rt2x00_ops rt2800usb_ops = { | |||
619 | .tx = &rt2800usb_queue_tx, | 614 | .tx = &rt2800usb_queue_tx, |
620 | .bcn = &rt2800usb_queue_bcn, | 615 | .bcn = &rt2800usb_queue_bcn, |
621 | .lib = &rt2800usb_rt2x00_ops, | 616 | .lib = &rt2800usb_rt2x00_ops, |
617 | .drv = &rt2800usb_rt2800_ops, | ||
622 | .hw = &rt2800usb_mac80211_ops, | 618 | .hw = &rt2800usb_mac80211_ops, |
623 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS | 619 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS |
624 | .debugfs = &rt2800_rt2x00debug, | 620 | .debugfs = &rt2800_rt2x00debug, |