brcmfmac: Make probe function __init
authorJean Delvare <jdelvare@suse.de>
Thu, 13 Mar 2014 22:21:08 +0000 (23:21 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Mar 2014 18:50:06 +0000 (14:50 -0400)
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c

index 4a6508e7e3a1058eea38aabc1c95d4d0ad4a40f9..d737cf78469a64f05baeefde17a364457ca54ea6 100644 (file)
@@ -1153,7 +1153,7 @@ static struct sdio_driver brcmf_sdmmc_driver = {
        },
 };
 
-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");