aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ll_temac_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ll_temac_main.c')
-rw-r--r--drivers/net/ll_temac_main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ll_temac_main.c b/drivers/net/ll_temac_main.c
index b59b24d667f0..fa7620e28404 100644
--- a/drivers/net/ll_temac_main.c
+++ b/drivers/net/ll_temac_main.c
@@ -920,14 +920,14 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match)
920 mutex_init(&lp->indirect_mutex); 920 mutex_init(&lp->indirect_mutex);
921 921
922 /* map device registers */ 922 /* map device registers */
923 lp->regs = of_iomap(op->node, 0); 923 lp->regs = of_iomap(op->dev.of_node, 0);
924 if (!lp->regs) { 924 if (!lp->regs) {
925 dev_err(&op->dev, "could not map temac regs.\n"); 925 dev_err(&op->dev, "could not map temac regs.\n");
926 goto nodev; 926 goto nodev;
927 } 927 }
928 928
929 /* Find the DMA node, map the DMA registers, and decode the DMA IRQs */ 929 /* Find the DMA node, map the DMA registers, and decode the DMA IRQs */
930 np = of_parse_phandle(op->node, "llink-connected", 0); 930 np = of_parse_phandle(op->dev.of_node, "llink-connected", 0);
931 if (!np) { 931 if (!np) {
932 dev_err(&op->dev, "could not find DMA node\n"); 932 dev_err(&op->dev, "could not find DMA node\n");
933 goto nodev; 933 goto nodev;
@@ -959,7 +959,7 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match)
959 of_node_put(np); /* Finished with the DMA node; drop the reference */ 959 of_node_put(np); /* Finished with the DMA node; drop the reference */
960 960
961 /* Retrieve the MAC address */ 961 /* Retrieve the MAC address */
962 addr = of_get_property(op->node, "local-mac-address", &size); 962 addr = of_get_property(op->dev.of_node, "local-mac-address", &size);
963 if ((!addr) || (size != 6)) { 963 if ((!addr) || (size != 6)) {
964 dev_err(&op->dev, "could not find MAC address\n"); 964 dev_err(&op->dev, "could not find MAC address\n");
965 rc = -ENODEV; 965 rc = -ENODEV;
@@ -967,11 +967,11 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match)
967 } 967 }
968 temac_set_mac_address(ndev, (void *)addr); 968 temac_set_mac_address(ndev, (void *)addr);
969 969
970 rc = temac_mdio_setup(lp, op->node); 970 rc = temac_mdio_setup(lp, op->dev.of_node);
971 if (rc) 971 if (rc)
972 dev_warn(&op->dev, "error registering MDIO bus\n"); 972 dev_warn(&op->dev, "error registering MDIO bus\n");
973 973
974 lp->phy_node = of_parse_phandle(op->node, "phy-handle", 0); 974 lp->phy_node = of_parse_phandle(op->dev.of_node, "phy-handle", 0);
975 if (lp->phy_node) 975 if (lp->phy_node)
976 dev_dbg(lp->dev, "using PHY node %s (%p)\n", np->full_name, np); 976 dev_dbg(lp->dev, "using PHY node %s (%p)\n", np->full_name, np);
977 977
@@ -1024,12 +1024,12 @@ static struct of_device_id temac_of_match[] __devinitdata = {
1024MODULE_DEVICE_TABLE(of, temac_of_match); 1024MODULE_DEVICE_TABLE(of, temac_of_match);
1025 1025
1026static struct of_platform_driver temac_of_driver = { 1026static struct of_platform_driver temac_of_driver = {
1027 .match_table = temac_of_match,
1028 .probe = temac_of_probe, 1027 .probe = temac_of_probe,
1029 .remove = __devexit_p(temac_of_remove), 1028 .remove = __devexit_p(temac_of_remove),
1030 .driver = { 1029 .driver = {
1031 .owner = THIS_MODULE, 1030 .owner = THIS_MODULE,
1032 .name = "xilinx_temac", 1031 .name = "xilinx_temac",
1032 .of_match_table = temac_of_match,
1033 }, 1033 },
1034}; 1034};
1035 1035