1
0
Fork 0

brcmfmac: Device tree entry support

eirik/updates-from-linux-fsl
Lars Ivar Miljeteig 2018-06-04 16:06:19 +02:00 committed by Eirik Schultz
parent 8999f669d5
commit 570320758b
No known key found for this signature in database
GPG Key ID: CA85F5BFB83767F3
1 changed files with 11 additions and 0 deletions

View File

@ -335,10 +335,21 @@ static int brcmf_common_pd_remove(struct platform_device *pdev)
return 0;
}
#ifdef CONFIG_OF
static const struct of_device_id brcmfmac_of_table[] = {
{ .compatible = "brcm,bcm4329-fmac" },
{}
};
MODULE_DEVICE_TABLE(of, brcmfmac_of_table);
#endif
static struct platform_driver brcmf_pd = {
.remove = brcmf_common_pd_remove,
.driver = {
.name = BRCMFMAC_PDATA_NAME,
#ifdef CONFIG_OF
.of_match_table = of_match_ptr(brcmfmac_of_table),
#endif
}
};