summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/arc/emac_arc.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-18 18:54:00 +0300
committerDavid S. Miller <davem@davemloft.net>2015-09-22 02:08:20 +0300
commitc7d778fa74a88e7b5a09ba498d66bd67a7dc7df0 (patch)
tree88ebc24e10a8a99814f5801e1e6fccd9c6187ada /drivers/net/ethernet/arc/emac_arc.c
parent1f770c0a09da855a2b51af6d19de97fb955eca85 (diff)
downloadlinux-c7d778fa74a88e7b5a09ba498d66bd67a7dc7df0.tar.xz
net: arc: 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 <luisbg@osg.samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/arc/emac_arc.c')
-rw-r--r--drivers/net/ethernet/arc/emac_arc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/arc/emac_arc.c b/drivers/net/ethernet/arc/emac_arc.c
index f9cb99bfb511..ffd180570920 100644
--- a/drivers/net/ethernet/arc/emac_arc.c
+++ b/drivers/net/ethernet/arc/emac_arc.c
@@ -78,6 +78,7 @@ static const struct of_device_id emac_arc_dt_ids[] = {
{ .compatible = "snps,arc-emac" },
{ /* Sentinel */ }
};
+MODULE_DEVICE_TABLE(of, emac_arc_dt_ids);
static struct platform_driver emac_arc_driver = {
.probe = emac_arc_probe,