From c21d3628ea6a68f70d048294d1c2247a462e03a2 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 19 Jan 2014 15:00:04 +0100 Subject: [PATCH] backports: fix unused mwifiex_sdio_resume() warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes the following warning: /drivers/net/wireless/mwifiex/sdio.c:124:12: warning: ‘mwifiex_sdio_resume’ defined but not used [-Wunused-function] static int mwifiex_sdio_resume(struct device *dev) ^ Signed-off-by: Hauke Mehrtens --- .../drivers_net_wireless_mwifiex_sdio.patch | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/patches/collateral-evolutions/network/29-sdio_no_suspend/drivers_net_wireless_mwifiex_sdio.patch b/patches/collateral-evolutions/network/29-sdio_no_suspend/drivers_net_wireless_mwifiex_sdio.patch index 11a30396597b..21b81091b144 100644 --- a/patches/collateral-evolutions/network/29-sdio_no_suspend/drivers_net_wireless_mwifiex_sdio.patch +++ b/patches/collateral-evolutions/network/29-sdio_no_suspend/drivers_net_wireless_mwifiex_sdio.patch @@ -1,6 +1,22 @@ --- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c -@@ -183,8 +183,10 @@ mwifiex_sdio_remove(struct sdio_func *fu +@@ -111,6 +111,7 @@ mwifiex_sdio_probe(struct sdio_func *fun + return ret; + } + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) + /* + * SDIO resume. + * +@@ -155,6 +156,7 @@ static int mwifiex_sdio_resume(struct de + + return 0; + } ++#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */ + + /* + * SDIO remove. +@@ -183,8 +185,10 @@ mwifiex_sdio_remove(struct sdio_func *fu wait_for_completion(&adapter->fw_load); if (user_rmmod) { @@ -11,7 +27,7 @@ for (i = 0; i < adapter->priv_num; i++) if ((GET_BSS_ROLE(adapter->priv[i]) == -@@ -200,6 +202,7 @@ mwifiex_sdio_remove(struct sdio_func *fu +@@ -200,6 +204,7 @@ mwifiex_sdio_remove(struct sdio_func *fu mwifiex_remove_card(card->adapter, &add_remove_card_sem); } @@ -19,7 +35,7 @@ /* * SDIO suspend. * -@@ -254,6 +257,7 @@ static int mwifiex_sdio_suspend(struct d +@@ -254,6 +259,7 @@ static int mwifiex_sdio_suspend(struct d return ret; } @@ -27,7 +43,7 @@ /* Device ID for SD8786 */ #define SDIO_DEVICE_ID_MARVELL_8786 (0x9116) -@@ -279,10 +283,12 @@ static const struct sdio_device_id mwifi +@@ -279,10 +285,12 @@ static const struct sdio_device_id mwifi MODULE_DEVICE_TABLE(sdio, mwifiex_ids); @@ -40,7 +56,7 @@ static struct sdio_driver mwifiex_sdio = { .name = "mwifiex_sdio", -@@ -291,7 +297,9 @@ static struct sdio_driver mwifiex_sdio = +@@ -291,7 +299,9 @@ static struct sdio_driver mwifiex_sdio = .remove = mwifiex_sdio_remove, .drv = { .owner = THIS_MODULE, -- 2.30.2