wl1251: use ELP wakeup interrupt instead of polling
[pandora-wifi.git] / drivers / net / wireless / wl12xx / wl1251_spi.c
index 601bde2..113df61 100644 (file)
 #include "wl1251_reg.h"
 #include "wl1251_spi.h"
 
-static irqreturn_t wl1251_irq(int irq, void *cookie)
+static irqreturn_t wl1251_line_irq(int irq, void *cookie)
 {
-       struct wl1251 *wl;
-
-       wl1251_debug(DEBUG_IRQ, "IRQ");
-
-       wl = cookie;
+       struct wl1251 *wl = cookie;
 
-       ieee80211_queue_work(wl->hw, &wl->irq_work);
+       wl1251_irq(wl);
 
        return IRQ_HANDLED;
 }
@@ -275,7 +271,7 @@ static int __devinit wl1251_spi_probe(struct spi_device *spi)
 
        wl->use_eeprom = pdata->use_eeprom;
 
-       ret = request_irq(wl->irq, wl1251_irq, 0, DRIVER_NAME, wl);
+       ret = request_irq(wl->irq, wl1251_line_irq, 0, DRIVER_NAME, wl);
        if (ret < 0) {
                wl1251_error("request_irq() failed: %d", ret);
                goto out_free;