aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_main.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-10-12 08:08:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:05 -0400
commit746214178774bc7f9adbeaef7d43a634570eb870 (patch)
tree7a1b6e9875351b89b9abbe9a836ec8c5c805a8ee /drivers/net/wireless/wl12xx/wl1271_main.c
parent207347e498cbe25fa2a8369edd49df43e56000be (diff)
wl1271: Remove outdated SPI functions
With the change to the new firmware, there was a change to firmware memory partitioning. Along with that change, the translation of all partitions was unified, and separate functions for reg and mem access became unnecessary. Cleanup the unnecessary functions. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index 8ac9bc1b9445..5ef0bd53af66 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -82,8 +82,8 @@ static void wl1271_fw_status(struct wl1271 *wl,
82 u32 total = 0; 82 u32 total = 0;
83 int i; 83 int i;
84 84
85 wl1271_spi_reg_read(wl, FW_STATUS_ADDR, status, 85 wl1271_spi_read(wl, FW_STATUS_ADDR, status,
86 sizeof(*status), false); 86 sizeof(*status), false);
87 87
88 wl1271_debug(DEBUG_IRQ, "intr: 0x%x (fw_rx_counter = %d, " 88 wl1271_debug(DEBUG_IRQ, "intr: 0x%x (fw_rx_counter = %d, "
89 "drv_rx_counter = %d, tx_results_counter = %d)", 89 "drv_rx_counter = %d, tx_results_counter = %d)",
@@ -126,7 +126,7 @@ static void wl1271_irq_work(struct work_struct *work)
126 if (ret < 0) 126 if (ret < 0)
127 goto out; 127 goto out;
128 128
129 wl1271_reg_write32(wl, ACX_REG_INTERRUPT_MASK, WL1271_ACX_INTR_ALL); 129 wl1271_spi_write32(wl, ACX_REG_INTERRUPT_MASK, WL1271_ACX_INTR_ALL);
130 130
131 wl1271_fw_status(wl, wl->fw_status); 131 wl1271_fw_status(wl, wl->fw_status);
132 intr = wl->fw_status->intr; 132 intr = wl->fw_status->intr;
@@ -168,7 +168,7 @@ static void wl1271_irq_work(struct work_struct *work)
168 } 168 }
169 169
170out_sleep: 170out_sleep:
171 wl1271_reg_write32(wl, ACX_REG_INTERRUPT_MASK, 171 wl1271_spi_write32(wl, ACX_REG_INTERRUPT_MASK,
172 WL1271_ACX_INTR_ALL & ~(WL1271_INTR_MASK)); 172 WL1271_ACX_INTR_ALL & ~(WL1271_INTR_MASK));
173 wl1271_ps_elp_sleep(wl); 173 wl1271_ps_elp_sleep(wl);
174 174
@@ -279,7 +279,7 @@ static void wl1271_fw_wakeup(struct wl1271 *wl)
279 u32 elp_reg; 279 u32 elp_reg;
280 280
281 elp_reg = ELPCTRL_WAKE_UP; 281 elp_reg = ELPCTRL_WAKE_UP;
282 wl1271_write32(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, elp_reg); 282 wl1271_raw_write32(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, elp_reg);
283} 283}
284 284
285static int wl1271_setup(struct wl1271 *wl) 285static int wl1271_setup(struct wl1271 *wl)
@@ -322,7 +322,7 @@ static int wl1271_chip_wakeup(struct wl1271 *wl)
322 /* whal_FwCtrl_BootSm() */ 322 /* whal_FwCtrl_BootSm() */
323 323
324 /* 0. read chip id from CHIP_ID */ 324 /* 0. read chip id from CHIP_ID */
325 wl->chip.id = wl1271_reg_read32(wl, CHIP_ID_B); 325 wl->chip.id = wl1271_spi_read32(wl, CHIP_ID_B);
326 326
327 /* 1. check if chip id is valid */ 327 /* 1. check if chip id is valid */
328 328