From: Sedat Dilek Subject: [PATCH] [net] phy: micrel: Fix build failure in ksz9031_config_init() Date: Sat, 9 Jan 2016 12:59:17 +0100 Message-ID: <1452340757-29507-1-git-send-email-sedat.dilek@gmail.com> Cc: Sedat Dilek , Roosen Henri , Andrew Lunn , David Daney , Florian Fainelli , "David S . Miller" , "netdev@vger.kernel.org" To: unlisted-recipients:; (no To-header on input) Return-path: Received: from mail-wm0-f41.google.com ([74.125.82.41]:34422 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754008AbcAIL6J (ORCPT ); Sat, 9 Jan 2016 06:58:09 -0500 Received: by mail-wm0-f41.google.com with SMTP id u188so164864816wmu.1 for ; Sat, 09 Jan 2016 03:58:08 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: 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 CC: Andrew Lunn CC: David Daney CC: Florian Fainelli CC: David S. Miller CC: "netdev@vger.kernel.org" Signed-off-by: Sedat Dilek --- [ 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