From: "J.D. Schroeder" <Linux.HWI@garmin.com>
To: <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
<davem@davemloft.net>, <Grygorii.Strashko@linaro.org>
Cc: "J.D. Schroeder" <jay.schroeder@garmin.com>,
Ben McCauley <ben.mccauley@garmin.com>
Subject: [PATCH] net: davinci_mdio: Set of_node in the mdio bus
Date: Mon, 25 Apr 2016 09:46:11 -0500 [thread overview]
Message-ID: <1461595571-11438-1-git-send-email-Linux.HWI@garmin.com> (raw)
From: "J.D. Schroeder" <jay.schroeder@garmin.com>
Assigns the of_node from the platform device to the of_node of the
mdio bus so that it can be used in the mdio driver to properly match
a bus in the DT with a phandle in of_mdio_find_bus().
Signed-off-by: J.D. Schroeder <jay.schroeder@garmin.com>
Signed-off-by: Ben McCauley <ben.mccauley@garmin.com>
---
drivers/net/ethernet/ti/davinci_mdio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index 4e7c9b9..b5e5f37 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
@@ -343,6 +343,7 @@ static int davinci_mdio_probe(struct platform_device *pdev)
if (davinci_mdio_probe_dt(&data->pdata, pdev))
data->pdata = default_pdata;
snprintf(data->bus->id, MII_BUS_ID_SIZE, "%s", pdev->name);
+ data->bus->dev.of_node = dev->of_node;
} else {
data->pdata = pdata ? (*pdata) : default_pdata;
snprintf(data->bus->id, MII_BUS_ID_SIZE, "%s-%x",
--
1.9.1
next reply other threads:[~2016-04-25 14:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-25 14:46 J.D. Schroeder [this message]
2016-04-28 19:44 ` [PATCH] net: davinci_mdio: Set of_node in the mdio bus David Miller
2016-04-28 21:39 ` J.D. Schroeder
2016-04-28 21:48 ` David Miller
2016-04-28 23:19 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461595571-11438-1-git-send-email-Linux.HWI@garmin.com \
--to=linux.hwi@garmin.com \
--cc=Grygorii.Strashko@linaro.org \
--cc=ben.mccauley@garmin.com \
--cc=davem@davemloft.net \
--cc=jay.schroeder@garmin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).