Skip to content

Commit 1ccb141

Browse files
luisbgdavem330
authored andcommitted
net: phy: mdio-gpio: 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]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2f90a30 commit 1ccb141

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/phy/mdio-gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ static const struct of_device_id mdio_gpio_of_match[] = {
261261
{ .compatible = "virtual,mdio-gpio", },
262262
{ /* sentinel */ }
263263
};
264+
MODULE_DEVICE_TABLE(of, mdio_gpio_of_match);
264265

265266
static struct platform_driver mdio_gpio_driver = {
266267
.probe = mdio_gpio_probe,

0 commit comments

Comments
 (0)