diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-25 10:15:21 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-26 09:36:45 -0400 |
commit | 6b42d308044854b39963cc713d9ed60d47f836fb (patch) | |
tree | 172d567cd4f555c21989a007f4377e2a50e9f727 | |
parent | 03bdeb0d545340f7c2768e11c294d067e76de8c9 (diff) |
ath6kl: set ram reserved size only for ar6003
Ram reserved size is not needed with ar6004.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/init.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c index 03cae142f178..1b97f26b9677 100644 --- a/drivers/net/wireless/ath/ath6kl/init.c +++ b/drivers/net/wireless/ath/ath6kl/init.c | |||
@@ -539,18 +539,20 @@ int ath6kl_configure_target(struct ath6kl *ar) | |||
539 | * but possible in theory. | 539 | * but possible in theory. |
540 | */ | 540 | */ |
541 | 541 | ||
542 | param = ar->hw.board_ext_data_addr; | 542 | if (ar->target_type == TARGET_TYPE_AR6003) { |
543 | ram_reserved_size = ar->hw.reserved_ram_size; | 543 | param = ar->hw.board_ext_data_addr; |
544 | ram_reserved_size = ar->hw.reserved_ram_size; | ||
544 | 545 | ||
545 | if (ath6kl_bmi_write_hi32(ar, hi_board_ext_data, param) != 0) { | 546 | if (ath6kl_bmi_write_hi32(ar, hi_board_ext_data, param) != 0) { |
546 | ath6kl_err("bmi_write_memory for hi_board_ext_data failed\n"); | 547 | ath6kl_err("bmi_write_memory for hi_board_ext_data failed\n"); |
547 | return -EIO; | 548 | return -EIO; |
548 | } | 549 | } |
549 | 550 | ||
550 | if (ath6kl_bmi_write_hi32(ar, hi_end_ram_reserve_sz, | 551 | if (ath6kl_bmi_write_hi32(ar, hi_end_ram_reserve_sz, |
551 | ram_reserved_size) != 0) { | 552 | ram_reserved_size) != 0) { |
552 | ath6kl_err("bmi_write_memory for hi_end_ram_reserve_sz failed\n"); | 553 | ath6kl_err("bmi_write_memory for hi_end_ram_reserve_sz failed\n"); |
553 | return -EIO; | 554 | return -EIO; |
555 | } | ||
554 | } | 556 | } |
555 | 557 | ||
556 | /* set the block size for the target */ | 558 | /* set the block size for the target */ |