return -ENOENT;
}
- maddr = get_property(dn, "local-mac-address", NULL);
+ maddr = of_get_property(dn, "local-mac-address", NULL);
/* Fall back to mac-address for older firmware */
if (maddr == NULL)
- maddr = get_property(dn, "mac-address", NULL);
+ maddr = of_get_property(dn, "mac-address", NULL);
if (maddr == NULL) {
dev_warn(&pdev->dev,
int ret;
dn = pci_device_to_OF_node(mac->pdev);
- ph = get_property(dn, "phy-handle", NULL);
+ ph = of_get_property(dn, "phy-handle", NULL);
if (!ph)
return -ENODEV;
phy_dn = of_find_node_by_phandle(*ph);
- prop = get_property(phy_dn, "reg", NULL);
+ prop = of_get_property(phy_dn, "reg", NULL);
ret = of_address_to_resource(phy_dn->parent, 0, &r);
if (ret)
goto err;