1
0
Fork 0

brcmfmac: Device tree entry support

steinar/wifi_calib_4_9_kernel
Lars Ivar Miljeteig 2018-06-04 16:06:19 +02:00
parent 66653d70e4
commit 393526558f
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
}
};