wl1271: Cleaned up wlan power on/off functions
[deliverable/linux.git] / drivers / net / wireless / wl12xx / wl1271_sdio.c
index 1f204db30c27be83a400c86e0c985d713929757c..d43e0d41d439c501380dfe4b66313fc260d928a9 100644 (file)
@@ -156,20 +156,21 @@ static void wl1271_sdio_raw_write(struct wl1271 *wl, int addr, void *buf,
        sdio_release_host(func);
 }
 
+static void wl1271_sdio_set_power(struct wl1271 *wl, bool enable)
+{
+}
+
 static struct wl1271_if_operations sdio_ops = {
        .read           = wl1271_sdio_raw_read,
        .write          = wl1271_sdio_raw_write,
        .reset          = wl1271_sdio_reset,
        .init           = wl1271_sdio_init,
+       .power          = wl1271_sdio_set_power,
        .dev            = wl1271_sdio_wl_to_dev,
        .enable_irq     = wl1271_sdio_enable_interrupts,
        .disable_irq    = wl1271_sdio_disable_interrupts
 };
 
-static void wl1271_sdio_set_power(bool enable)
-{
-}
-
 static int __devinit wl1271_probe(struct sdio_func *func,
                                  const struct sdio_device_id *id)
 {
@@ -190,8 +191,6 @@ static int __devinit wl1271_probe(struct sdio_func *func,
        wl->if_priv = func;
        wl->if_ops = &sdio_ops;
 
-       wl->set_power = wl1271_sdio_set_power;
-
        /* Grab access to FN0 for ELP reg. */
        func->card->quirks |= MMC_QUIRK_LENIENT_FN0;
 
This page took 0.026252 seconds and 5 git commands to generate.