]> git.karo-electronics.de Git - linux-beck.git/commitdiff
brcmfmac: add owner info to sdio_driver structure
authorFranky Lin <frankyl@broadcom.com>
Wed, 29 Jan 2014 14:32:12 +0000 (15:32 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Feb 2014 20:31:49 +0000 (15:31 -0500)
To link module attribute with sdio device driver attribute in sysfs.

Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c

index fa35b23bbaa736de6fcad84efc1a6cd93f0669b8..9eb6f786b3b48681c169e0c7169ad7b51342c098 100644 (file)
@@ -1115,11 +1115,12 @@ static struct sdio_driver brcmf_sdmmc_driver = {
        .remove = brcmf_ops_sdio_remove,
        .name = BRCMFMAC_SDIO_PDATA_NAME,
        .id_table = brcmf_sdmmc_ids,
-#ifdef CONFIG_PM_SLEEP
        .drv = {
+               .owner = THIS_MODULE,
+#ifdef CONFIG_PM_SLEEP
                .pm = &brcmf_sdio_pm_ops,
-       },
 #endif /* CONFIG_PM_SLEEP */
+       },
 };
 
 static int brcmf_sdio_pd_probe(struct platform_device *pdev)