aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sunbmac.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-04-13 19:12:29 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-05-18 18:10:44 -0400
commit61c7a080a5a061c976988fd4b844dfb468dda255 (patch)
tree8cb492b73f2755c38a6164d770da34d5af6486a0 /drivers/net/sunbmac.c
parentd12d42f744f805a9ccc33cd76f04b237cd83ce56 (diff)
of: Always use 'struct device.of_node' to get device node pointer.
The following structure elements duplicate the information in 'struct device.of_node' and so are being eliminated. This patch makes all readers of these elements use device.of_node instead. (struct of_device *)->node (struct dev_archdata *)->prom_node (sparc) (struct dev_archdata *)->of_node (powerpc & microblaze) Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/sunbmac.c')
-rw-r--r--drivers/net/sunbmac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sunbmac.c b/drivers/net/sunbmac.c
index ed7865a0b5b2..bd286ec5abd9 100644
--- a/drivers/net/sunbmac.c
+++ b/drivers/net/sunbmac.c
@@ -1133,8 +1133,8 @@ static int __devinit bigmac_ether_init(struct of_device *op,
1133 goto fail_and_cleanup; 1133 goto fail_and_cleanup;
1134 1134
1135 /* Get supported SBUS burst sizes. */ 1135 /* Get supported SBUS burst sizes. */
1136 bsizes = of_getintprop_default(qec_op->node, "burst-sizes", 0xff); 1136 bsizes = of_getintprop_default(qec_op->dev.of_node, "burst-sizes", 0xff);
1137 bsizes_more = of_getintprop_default(qec_op->node, "burst-sizes", 0xff); 1137 bsizes_more = of_getintprop_default(qec_op->dev.of_node, "burst-sizes", 0xff);
1138 1138
1139 bsizes &= 0xff; 1139 bsizes &= 0xff;
1140 if (bsizes_more != 0xff) 1140 if (bsizes_more != 0xff)
@@ -1186,7 +1186,7 @@ static int __devinit bigmac_ether_init(struct of_device *op,
1186 } 1186 }
1187 1187
1188 /* Get the board revision of this BigMAC. */ 1188 /* Get the board revision of this BigMAC. */
1189 bp->board_rev = of_getintprop_default(bp->bigmac_op->node, 1189 bp->board_rev = of_getintprop_default(bp->bigmac_op->dev.of_node,
1190 "board-version", 1); 1190 "board-version", 1);
1191 1191
1192 /* Init auto-negotiation timer state. */ 1192 /* Init auto-negotiation timer state. */