compat-wireless: Remove use of sdio quirks attribute
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Apr 2010 13:36:23 +0000 (15:36 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 20 Apr 2010 00:19:32 +0000 (17:19 -0700)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/26-sdio-quirks.patch [new file with mode: 0644]

diff --git a/patches/26-sdio-quirks.patch b/patches/26-sdio-quirks.patch
new file mode 100644 (file)
index 0000000..0b43be5
--- /dev/null
@@ -0,0 +1,20 @@
+The quirks attribute is not available on older kernels.
+
+--- a/drivers/net/wireless/libertas/if_sdio.c
++++ b/drivers/net/wireless/libertas/if_sdio.c
+@@ -1026,6 +1026,7 @@ static int if_sdio_probe(struct sdio_fun
+       if (ret)
+               goto disable;
++#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. */
+@@ -1044,6 +1045,7 @@ static int if_sdio_probe(struct sdio_fun
+               if (ret)
+                       goto release_int;
+       }
++#endif
+       card->ioport = sdio_readb(func, IF_SDIO_IOPORT, &ret);
+       if (ret)