Skip to content

Commit e8048e5

Browse files
luisbgdavem330
authored andcommitted
net: bcmgenet: Fix module autoload for OF platform driver
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 46d5a34 commit e8048e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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
{

0 commit comments

Comments
 (0)