[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1399389492-32596-1-git-send-email-zonque@gmail.com>
Date: Tue, 6 May 2014 17:18:12 +0200
From: Daniel Mack <zonque@...il.com>
To: mugunthanvnm@...com
Cc: davem@...emloft.net, netdev@...r.kernel.org,
Daniel Mack <zonque@...il.com>
Subject: [PATCH] net: davinci_mdio: Use of_mdiobus_register()
of_mdiobus_register() calls mdiobus_register() internally, so the
functionality is preserved. However, by calling the of_ variant, phy
nodes can be augmented with extra information.
Signed-off-by: Daniel Mack <zonque@...il.com>
---
drivers/net/ethernet/ti/davinci_mdio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index 0cca9de..359d42c 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
@@ -38,6 +38,7 @@
#include <linux/davinci_emac.h>
#include <linux/of.h>
#include <linux/of_device.h>
+#include <linux/of_mdio.h>
#include <linux/pinctrl/consumer.h>
/*
@@ -389,7 +390,7 @@ static int davinci_mdio_probe(struct platform_device *pdev)
}
/* register the mii bus */
- ret = mdiobus_register(data->bus);
+ ret = of_mdiobus_register(data->bus, dev->of_node);
if (ret)
goto bail_out;
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists