public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] brcmfmac: Make probe function __init
@ 2014-03-13 22:21 Jean Delvare
  0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2014-03-13 22:21 UTC (permalink / raw)
  To: linux-wireless, brcm80211-dev-list
  Cc: Hante Meuleman, Arend van Spriel, John W. Linville

One of the benefits of platform_driver_probe() is that you can make
the probe function __init.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Hante Meuleman <meuleman@broadcom.com>
Cc: Arend van Spriel <arend@broadcom.com>
Cc: John W. Linville <linville@tuxdriver.com>
---
Build tested only, no hardware.

 drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-3.14-rc6.orig/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c	2014-02-09 16:53:04.065657732 +0100
+++ linux-3.14-rc6/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c	2014-03-13 19:46:25.083526576 +0100
@@ -1122,7 +1122,7 @@ static struct sdio_driver brcmf_sdmmc_dr
 #endif	/* CONFIG_PM_SLEEP */
 };
 
-static int brcmf_sdio_pd_probe(struct platform_device *pdev)
+static int __init brcmf_sdio_pd_probe(struct platform_device *pdev)
 {
 	brcmf_dbg(SDIO, "Enter\n");
 


-- 
Jean Delvare
SUSE L3 Support

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-13 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13 22:21 [PATCH] brcmfmac: Make probe function __init Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox