[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090427153612.5108.10877.stgit@localhost.localdomain>
Date: Mon, 27 Apr 2009 09:36:13 -0600
From: Grant Likely <grant.likely@...retlab.ca>
To: Joakim Tjernlund <Joakim.Tjernlund@...nsmode.se>,
Andy Fleming <afleming@...escale.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
David Miller <davem@...emloft.net>, linuxppc-dev@...abs.org,
netdev@...r.kernel.org
Subject: [PATCH] net: Fix ucc_geth.c handling of phy 'interface' property.
From: Grant Likely <grant.likely@...retlab.ca>
Previous rework to ucc_geth.c to add of_mdio support (net: Rework
ucc_geth driver to use of_mdio infrastructure) added a block of
code which broke older openfirmware device trees which use an
'interface' property in the phy node to describe the connection
between the MAC and the PHY. This patch removes the offending blurb.
Signed-off-by: Grant Likely <grant.likely@...retlab.ca>
---
drivers/net/ucc_geth.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 195b490..d805d60 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -3639,9 +3639,6 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
prop = of_get_property(np, "phy-connection-type", NULL);
if (!prop) {
/* handle interface property present in old trees */
- if (!phy)
- return -ENODEV;
-
prop = of_get_property(phy, "interface", NULL);
if (prop != NULL) {
phy_interface = enet_to_phy_interface[*prop];
--
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