netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [net] phy: micrel: Fix build failure in ksz9031_config_init()
@ 2016-01-09 11:59 Sedat Dilek
  2016-01-09 15:55 ` Andrew Lunn
  2016-01-10 11:50 ` kbuild test robot
  0 siblings, 2 replies; 5+ messages in thread
From: Sedat Dilek @ 2016-01-09 11:59 UTC (permalink / raw)
  Cc: Sedat Dilek, Roosen Henri, Andrew Lunn, David Daney,
	Florian Fainelli, David S . Miller, netdev@vger.kernel.org

This fixes the following build failure seen in net.git#master on top of
Linux v4.4-rc8+:

drivers/net/phy/micrel.c: In function 'ksz9031_config_init':
drivers/net/phy/micrel.c:492:22: error: 'struct phy_device' has no member named 'dev'
  dev_walker = &phydev->dev;

Fixes: b4c19f71252e ("phy: micrel: Fix finding PHY properties in MAC node for KSZ9031.")
CC: Roosen Henri <Henri.Roosen@ginzinger.com>
CC: Andrew Lunn <andrew@lunn.ch>
CC: David Daney <david.daney@cavium.com>
CC: Florian Fainelli <f.fainelli@gmail.com>
CC: David S. Miller <davem@davemloft.net>
CC: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
---
[ dileks: v2: Add "[net]" to the subject-line ]

 drivers/net/phy/micrel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 7a5679982c03..a7e17eabec37 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -476,7 +476,7 @@ static int ksz9031_config_init(struct phy_device *phydev)
 	 * properties in the MAC node. Walk up the tree of devices to
 	 * find a device with an OF node.
 	 */
-	dev_walker = &phydev->dev;
+	dev_walker = &phydev->mdio.dev;
 	do {
 		of_node = dev_walker->of_node;
 		dev_walker = dev_walker->parent;
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-11  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-09 11:59 [PATCH] [net] phy: micrel: Fix build failure in ksz9031_config_init() Sedat Dilek
2016-01-09 15:55 ` Andrew Lunn
2016-01-09 22:24   ` Sedat Dilek
2016-01-10 11:50 ` kbuild test robot
2016-01-11  9:23   ` Sedat Dilek

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).