diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | 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 a5362846663..f18017dc025 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -3631,9 +3631,6 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3631 | prop = of_get_property(np, "phy-connection-type", NULL); | 3631 | prop = of_get_property(np, "phy-connection-type", NULL); |
3632 | if (!prop) { | 3632 | if (!prop) { |
3633 | /* handle interface property present in old trees */ | 3633 | /* handle interface property present in old trees */ |
3634 | if (!phy) | ||
3635 | return -ENODEV; | ||
3636 | |||
3637 | prop = of_get_property(phy, "interface", NULL); | 3634 | prop = of_get_property(phy, "interface", NULL); |
3638 | if (prop != NULL) { | 3635 | if (prop != NULL) { |
3639 | phy_interface = enet_to_phy_interface[*prop]; | 3636 | phy_interface = enet_to_phy_interface[*prop]; |