Explorar o código

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 <luis@osg.samsung.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Luis de Bethencourt %!s(int64=10) %!d(string=hai) anos
pai
achega
e8048e5595
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/net/ethernet/broadcom/genet/bcmgenet.c

+ 1 - 0
drivers/net/ethernet/broadcom/genet/bcmgenet.c

@@ -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)
 {