iwl3945: fix compilation error in iwl3945_pass_packet_to_mac80211()
[pandora-kernel.git] / drivers / net / wireless / wl12xx / wl1251_ops.c
index e7b9aab..758280a 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "wl1251_ops.h"
 #include "reg.h"
+#include "wl1251_io.h"
 #include "wl1251_spi.h"
 #include "wl1251_boot.h"
 #include "wl1251_event.h"
@@ -130,7 +131,7 @@ static int wl1251_upload_firmware(struct wl1251 *wl)
                p = wl->fw + FW_HDR_SIZE + chunk_num * CHUNK_SIZE;
                wl1251_debug(DEBUG_BOOT, "uploading fw chunk 0x%p to 0x%x",
                             p, addr);
-               wl1251_spi_mem_write(wl, addr, p, CHUNK_SIZE);
+               wl1251_mem_write(wl, addr, p, CHUNK_SIZE);
 
                chunk_num++;
        }
@@ -140,7 +141,7 @@ static int wl1251_upload_firmware(struct wl1251 *wl)
        p = wl->fw + FW_HDR_SIZE + chunk_num * CHUNK_SIZE;
        wl1251_debug(DEBUG_BOOT, "uploading fw last chunk (%zu B) 0x%p to 0x%x",
                     fw_data_len % CHUNK_SIZE, p, addr);
-       wl1251_spi_mem_write(wl, addr, p, fw_data_len % CHUNK_SIZE);
+       wl1251_mem_write(wl, addr, p, fw_data_len % CHUNK_SIZE);
 
        return 0;
 }