Commit 4f8d0bbb authored by David S. Miller's avatar David S. Miller

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: default avatarDavid S. Miller <davem@davemloft.net>
parents a11d5585 1ccb141e
...@@ -244,6 +244,7 @@ static const struct of_device_id unimac_mdio_ids[] = { ...@@ -244,6 +244,7 @@ static const struct of_device_id unimac_mdio_ids[] = {
{ .compatible = "brcm,unimac-mdio", }, { .compatible = "brcm,unimac-mdio", },
{ /* sentinel */ }, { /* sentinel */ },
}; };
MODULE_DEVICE_TABLE(of, unimac_mdio_ids);
static struct platform_driver unimac_mdio_driver = { static struct platform_driver unimac_mdio_driver = {
.driver = { .driver = {
......
...@@ -261,6 +261,7 @@ static const struct of_device_id mdio_gpio_of_match[] = { ...@@ -261,6 +261,7 @@ static const struct of_device_id mdio_gpio_of_match[] = {
{ .compatible = "virtual,mdio-gpio", }, { .compatible = "virtual,mdio-gpio", },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(of, mdio_gpio_of_match);
static struct platform_driver mdio_gpio_driver = { static struct platform_driver mdio_gpio_driver = {
.probe = mdio_gpio_probe, .probe = mdio_gpio_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment