Skip to content

Commit a11d558

Browse files
committed
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 <[email protected]>
2 parents 1f770c0 + ebd8ebf commit a11d558

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

drivers/net/ethernet/arc/emac_arc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static const struct of_device_id emac_arc_dt_ids[] = {
7878
{ .compatible = "snps,arc-emac" },
7979
{ /* Sentinel */ }
8080
};
81+
MODULE_DEVICE_TABLE(of, emac_arc_dt_ids);
8182

8283
static struct platform_driver emac_arc_driver = {
8384
.probe = emac_arc_probe,

drivers/net/ethernet/broadcom/bcmsysport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,6 +2079,7 @@ static const struct of_device_id bcm_sysport_of_match[] = {
20792079
{ .compatible = "brcm,systemport" },
20802080
{ /* sentinel */ }
20812081
};
2082+
MODULE_DEVICE_TABLE(of, bcm_sysport_of_match);
20822083

20832084
static struct platform_driver bcm_sysport_driver = {
20842085
.probe = bcm_sysport_probe,

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,6 +3155,7 @@ static const struct of_device_id bcmgenet_match[] = {
31553155
{ .compatible = "brcm,genet-v4", .data = (void *)GENET_V4 },
31563156
{ },
31573157
};
3158+
MODULE_DEVICE_TABLE(of, bcmgenet_match);
31583159

31593160
static int bcmgenet_probe(struct platform_device *pdev)
31603161
{

drivers/net/ethernet/freescale/gianfar_ptp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ static const struct of_device_id match_table[] = {
557557
{ .compatible = "fsl,etsec-ptp" },
558558
{},
559559
};
560+
MODULE_DEVICE_TABLE(of, match_table);
560561

561562
static struct platform_driver gianfar_ptp_driver = {
562563
.driver = {

drivers/net/ethernet/moxa/moxart_ether.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ static const struct of_device_id moxart_mac_match[] = {
552552
{ .compatible = "moxa,moxart-mac" },
553553
{ }
554554
};
555+
MODULE_DEVICE_TABLE(of, moxart_mac_match);
555556

556557
static struct platform_driver moxart_mac_driver = {
557558
.probe = moxart_mac_probe,

0 commit comments

Comments
 (0)