Skip to content

Commit 4f8d0bb

Browse files
committed
Merge branch 'phy-of-autoload'
Luis de Bethencourt says: ==================== net: phy: 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 a11d558 + 1ccb141 commit 4f8d0bb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-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 = {

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)