blob: 412f36e4e7ec0b1b8942708fc94cfc58153706b0 [file] [log] [blame]
--- a/drivers/net/wireless/libertas/if_sdio.c
+++ b/drivers/net/wireless/libertas/if_sdio.c
@@ -873,6 +873,7 @@ static int if_sdio_power_on(struct if_sd
if (ret)
goto release;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
/* For 1-bit transfers to the 8686 model, we need to enable the
* interrupt flag in the CCCR register. Set the MMC_QUIRK_LENIENT_FN0
* bit to allow access to non-vendor registers. */
@@ -891,6 +892,7 @@ static int if_sdio_power_on(struct if_sd
if (ret)
goto disable;
}
+#endif
card->ioport = sdio_readb(func, IF_SDIO_IOPORT, &ret);
if (ret)