summaryrefslogtreecommitdiff
path: root/drivers/net/mdio/mdio-xgene.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mdio/mdio-xgene.c')
-rw-r--r--drivers/net/mdio/mdio-xgene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mdio/mdio-xgene.c b/drivers/net/mdio/mdio-xgene.c
index 7ab4e26db08c..7aafc221b5cf 100644
--- a/drivers/net/mdio/mdio-xgene.c
+++ b/drivers/net/mdio/mdio-xgene.c
@@ -285,7 +285,8 @@ static acpi_status acpi_register_phy(acpi_handle handle, u32 lvl,
const union acpi_object *obj;
u32 phy_addr;
- if (acpi_bus_get_device(handle, &adev))
+ adev = acpi_fetch_acpi_dev(handle);
+ if (!adev)
return AE_OK;
if (acpi_dev_get_property(adev, "phy-channel", ACPI_TYPE_INTEGER, &obj))