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:
parent
b60186f824
commit
f91f5f05f9
|
@ -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,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue