Skip to content

Commit 2f90a30

Browse files
luisbgdavem330
authored andcommitted
net: phy: mdio-bcm-unimac: 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 a11d558 commit 2f90a30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/phy/mdio-bcm-unimac.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ static const struct of_device_id unimac_mdio_ids[] = {
244244
{ .compatible = "brcm,unimac-mdio", },
245245
{ /* sentinel */ },
246246
};
247+
MODULE_DEVICE_TABLE(of, unimac_mdio_ids);
247248

248249
static struct platform_driver unimac_mdio_driver = {
249250
.driver = {

0 commit comments

Comments
 (0)