From 31755b50dd176925c7448fa6989ceb48bf7c64c9 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 18 Apr 2010 15:36:23 +0200 Subject: [PATCH] compat-wireless: Remove use of sdio quirks attribute Signed-off-by: Hauke Mehrtens --- patches/26-sdio-quirks.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/26-sdio-quirks.patch diff --git a/patches/26-sdio-quirks.patch b/patches/26-sdio-quirks.patch new file mode 100644 index 000000000000..0b43be53670b --- /dev/null +++ b/patches/26-sdio-quirks.patch @@ -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) -- 2.30.2