drivers/net/wireless/brcm80211/brcmfmac: add missing platform_driver owner

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>
This commit is contained in:
Libo Chen 2013-05-21 10:42:40 +08:00 committed by John W. Linville
parent b60186f824
commit f91f5f05f9
1 changed files with 2 additions and 1 deletions

View File

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