Merge branch 'net-of-autoload'
Luis de Bethencourt says: ==================== net: Fix module autoload for OF platform drivers These patches add the missing MODULE_DEVICE_TABLE() for OF to export the information so modules have the correct aliases built-in and autoloading works correctly. A longer explanation by Javier Canillas can be found here: https://lkml.org/lkml/2015/7/30/519 ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
a11d5585ed
|
@ -78,6 +78,7 @@ static const struct of_device_id emac_arc_dt_ids[] = {
|
|||
{ .compatible = "snps,arc-emac" },
|
||||
{ /* Sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, emac_arc_dt_ids);
|
||||
|
||||
static struct platform_driver emac_arc_driver = {
|
||||
.probe = emac_arc_probe,
|
||||
|
|
|
@ -2079,6 +2079,7 @@ static const struct of_device_id bcm_sysport_of_match[] = {
|
|||
{ .compatible = "brcm,systemport" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, bcm_sysport_of_match);
|
||||
|
||||
static struct platform_driver bcm_sysport_driver = {
|
||||
.probe = bcm_sysport_probe,
|
||||
|
|
|
@ -3155,6 +3155,7 @@ static const struct of_device_id bcmgenet_match[] = {
|
|||
{ .compatible = "brcm,genet-v4", .data = (void *)GENET_V4 },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, bcmgenet_match);
|
||||
|
||||
static int bcmgenet_probe(struct platform_device *pdev)
|
||||
{
|
||||
|
|
|
@ -557,6 +557,7 @@ static const struct of_device_id match_table[] = {
|
|||
{ .compatible = "fsl,etsec-ptp" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, match_table);
|
||||
|
||||
static struct platform_driver gianfar_ptp_driver = {
|
||||
.driver = {
|
||||
|
|
|
@ -552,6 +552,7 @@ static const struct of_device_id moxart_mac_match[] = {
|
|||
{ .compatible = "moxa,moxart-mac" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, moxart_mac_match);
|
||||
|
||||
static struct platform_driver moxart_mac_driver = {
|
||||
.probe = moxart_mac_probe,
|
||||
|
|
Loading…
Reference in New Issue