From: Hauke Mehrtens Date: Sun, 18 Apr 2010 13:36:23 +0000 (+0200) Subject: compat-wireless: Remove use of sdio quirks attribute X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=31755b50dd176925c7448fa6989ceb48bf7c64c9;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: Remove use of sdio quirks attribute Signed-off-by: Hauke Mehrtens --- 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)