diff options
Diffstat (limited to 'drivers/net/sunbmac.c')
-rw-r--r-- | drivers/net/sunbmac.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/sunbmac.c b/drivers/net/sunbmac.c index 4591fe9bf0b..367e96f317d 100644 --- a/drivers/net/sunbmac.c +++ b/drivers/net/sunbmac.c | |||
@@ -1131,8 +1131,8 @@ static int __devinit bigmac_ether_init(struct of_device *op, | |||
1131 | goto fail_and_cleanup; | 1131 | goto fail_and_cleanup; |
1132 | 1132 | ||
1133 | /* Get supported SBUS burst sizes. */ | 1133 | /* Get supported SBUS burst sizes. */ |
1134 | bsizes = of_getintprop_default(qec_op->node, "burst-sizes", 0xff); | 1134 | bsizes = of_getintprop_default(qec_op->dev.of_node, "burst-sizes", 0xff); |
1135 | bsizes_more = of_getintprop_default(qec_op->node, "burst-sizes", 0xff); | 1135 | bsizes_more = of_getintprop_default(qec_op->dev.of_node, "burst-sizes", 0xff); |
1136 | 1136 | ||
1137 | bsizes &= 0xff; | 1137 | bsizes &= 0xff; |
1138 | if (bsizes_more != 0xff) | 1138 | if (bsizes_more != 0xff) |
@@ -1184,7 +1184,7 @@ static int __devinit bigmac_ether_init(struct of_device *op, | |||
1184 | } | 1184 | } |
1185 | 1185 | ||
1186 | /* Get the board revision of this BigMAC. */ | 1186 | /* Get the board revision of this BigMAC. */ |
1187 | bp->board_rev = of_getintprop_default(bp->bigmac_op->node, | 1187 | bp->board_rev = of_getintprop_default(bp->bigmac_op->dev.of_node, |
1188 | "board-version", 1); | 1188 | "board-version", 1); |
1189 | 1189 | ||
1190 | /* Init auto-negotiation timer state. */ | 1190 | /* Init auto-negotiation timer state. */ |
@@ -1290,8 +1290,11 @@ static const struct of_device_id bigmac_sbus_match[] = { | |||
1290 | MODULE_DEVICE_TABLE(of, bigmac_sbus_match); | 1290 | MODULE_DEVICE_TABLE(of, bigmac_sbus_match); |
1291 | 1291 | ||
1292 | static struct of_platform_driver bigmac_sbus_driver = { | 1292 | static struct of_platform_driver bigmac_sbus_driver = { |
1293 | .name = "sunbmac", | 1293 | .driver = { |
1294 | .match_table = bigmac_sbus_match, | 1294 | .name = "sunbmac", |
1295 | .owner = THIS_MODULE, | ||
1296 | .of_match_table = bigmac_sbus_match, | ||
1297 | }, | ||
1295 | .probe = bigmac_sbus_probe, | 1298 | .probe = bigmac_sbus_probe, |
1296 | .remove = __devexit_p(bigmac_sbus_remove), | 1299 | .remove = __devexit_p(bigmac_sbus_remove), |
1297 | }; | 1300 | }; |