diff options
Diffstat (limited to 'drivers/net/ll_temac_main.c')
-rw-r--r-- | drivers/net/ll_temac_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ll_temac_main.c b/drivers/net/ll_temac_main.c index ba617e3cf1bb..9c7395c10e44 100644 --- a/drivers/net/ll_temac_main.c +++ b/drivers/net/ll_temac_main.c | |||
@@ -858,14 +858,14 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match) | |||
858 | mutex_init(&lp->indirect_mutex); | 858 | mutex_init(&lp->indirect_mutex); |
859 | 859 | ||
860 | /* map device registers */ | 860 | /* map device registers */ |
861 | lp->regs = of_iomap(op->node, 0); | 861 | lp->regs = of_iomap(op->dev.of_node, 0); |
862 | if (!lp->regs) { | 862 | if (!lp->regs) { |
863 | dev_err(&op->dev, "could not map temac regs.\n"); | 863 | dev_err(&op->dev, "could not map temac regs.\n"); |
864 | goto nodev; | 864 | goto nodev; |
865 | } | 865 | } |
866 | 866 | ||
867 | /* Find the DMA node, map the DMA registers, and decode the DMA IRQs */ | 867 | /* Find the DMA node, map the DMA registers, and decode the DMA IRQs */ |
868 | np = of_parse_phandle(op->node, "llink-connected", 0); | 868 | np = of_parse_phandle(op->dev.of_node, "llink-connected", 0); |
869 | if (!np) { | 869 | if (!np) { |
870 | dev_err(&op->dev, "could not find DMA node\n"); | 870 | dev_err(&op->dev, "could not find DMA node\n"); |
871 | goto nodev; | 871 | goto nodev; |
@@ -890,7 +890,7 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match) | |||
890 | of_node_put(np); /* Finished with the DMA node; drop the reference */ | 890 | of_node_put(np); /* Finished with the DMA node; drop the reference */ |
891 | 891 | ||
892 | /* Retrieve the MAC address */ | 892 | /* Retrieve the MAC address */ |
893 | addr = of_get_property(op->node, "local-mac-address", &size); | 893 | addr = of_get_property(op->dev.of_node, "local-mac-address", &size); |
894 | if ((!addr) || (size != 6)) { | 894 | if ((!addr) || (size != 6)) { |
895 | dev_err(&op->dev, "could not find MAC address\n"); | 895 | dev_err(&op->dev, "could not find MAC address\n"); |
896 | rc = -ENODEV; | 896 | rc = -ENODEV; |
@@ -898,11 +898,11 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match) | |||
898 | } | 898 | } |
899 | temac_set_mac_address(ndev, (void *)addr); | 899 | temac_set_mac_address(ndev, (void *)addr); |
900 | 900 | ||
901 | rc = temac_mdio_setup(lp, op->node); | 901 | rc = temac_mdio_setup(lp, op->dev.of_node); |
902 | if (rc) | 902 | if (rc) |
903 | dev_warn(&op->dev, "error registering MDIO bus\n"); | 903 | dev_warn(&op->dev, "error registering MDIO bus\n"); |
904 | 904 | ||
905 | lp->phy_node = of_parse_phandle(op->node, "phy-handle", 0); | 905 | lp->phy_node = of_parse_phandle(op->dev.of_node, "phy-handle", 0); |
906 | if (lp->phy_node) | 906 | if (lp->phy_node) |
907 | dev_dbg(lp->dev, "using PHY node %s (%p)\n", np->full_name, np); | 907 | dev_dbg(lp->dev, "using PHY node %s (%p)\n", np->full_name, np); |
908 | 908 | ||