drivers/net/wireless/brcm80211/brcmfmac: add missing platform_driver owner
authorLibo Chen <libo.chen@huawei.com>
Tue, 21 May 2013 02:42:40 +0000 (10:42 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 May 2013 19:09:15 +0000 (15:09 -0400)
set the owner of platform_driver, to ensure that the
caller of driver holds a module refernece

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c

index 44fa0cdbf97b0772dc2651c98b5004d5040287ed..11400b39cf0bd4b072c2c3cec5adbfd06a6168e4 100644 (file)
@@ -606,7 +606,8 @@ static int brcmf_sdio_pd_remove(struct platform_device *pdev)
 static struct platform_driver brcmf_sdio_pd = {
        .remove         = brcmf_sdio_pd_remove,
        .driver         = {
-               .name   = BRCMFMAC_SDIO_PDATA_NAME
+               .name   = BRCMFMAC_SDIO_PDATA_NAME,
+               .owner  = THIS_MODULE,
        }
 };