summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio-gpio.c
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-10-14 23:54:52 +0200
committerDavid S. Miller <davem@davemloft.net>2009-10-14 23:54:52 +0200
commite72701acbe0b35e52d3f04d442837c06b4e64f1c (patch)
tree2a8edc6952e79c3d2ee3bdf7690ed1a6f2e7bcc6 /drivers/net/phy/mdio-gpio.c
parentTI DaVinci EMAC: Clear statistics register properly. (diff)
downloadlinux-e72701acbe0b35e52d3f04d442837c06b4e64f1c.tar.xz
linux-e72701acbe0b35e52d3f04d442837c06b4e64f1c.zip
net: Fix OF platform drivers coldplug/hotplug when compiled as modules
Some OF platform drivers are missing module device tables, so they won't load automatically on boot. This patch fixes the issue by adding proper MODULE_DEVICE_TABLE() macros to the drivers. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/phy/mdio-gpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index 250e10f2c35b..8659d341e769 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -238,6 +238,7 @@ static struct of_device_id mdio_ofgpio_match[] = {
},
{},
};
+MODULE_DEVICE_TABLE(of, mdio_ofgpio_match);
static struct of_platform_driver mdio_ofgpio_driver = {
.name = "mdio-gpio",