diff options
Diffstat (limited to 'drivers/net/fs_enet/fs_enet-main.c')
-rw-r--r-- | drivers/net/fs_enet/fs_enet-main.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c index 0fb0fefcb78..309a0eaddd8 100644 --- a/drivers/net/fs_enet/fs_enet-main.c +++ b/drivers/net/fs_enet/fs_enet-main.c | |||
@@ -1013,7 +1013,7 @@ static int __devinit fs_enet_probe(struct of_device *ofdev, | |||
1013 | return -ENOMEM; | 1013 | return -ENOMEM; |
1014 | 1014 | ||
1015 | if (!IS_FEC(match)) { | 1015 | if (!IS_FEC(match)) { |
1016 | data = of_get_property(ofdev->node, "fsl,cpm-command", &len); | 1016 | data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len); |
1017 | if (!data || len != 4) | 1017 | if (!data || len != 4) |
1018 | goto out_free_fpi; | 1018 | goto out_free_fpi; |
1019 | 1019 | ||
@@ -1025,8 +1025,8 @@ static int __devinit fs_enet_probe(struct of_device *ofdev, | |||
1025 | fpi->rx_copybreak = 240; | 1025 | fpi->rx_copybreak = 240; |
1026 | fpi->use_napi = 1; | 1026 | fpi->use_napi = 1; |
1027 | fpi->napi_weight = 17; | 1027 | fpi->napi_weight = 17; |
1028 | fpi->phy_node = of_parse_phandle(ofdev->node, "phy-handle", 0); | 1028 | fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); |
1029 | if ((!fpi->phy_node) && (!of_get_property(ofdev->node, "fixed-link", | 1029 | if ((!fpi->phy_node) && (!of_get_property(ofdev->dev.of_node, "fixed-link", |
1030 | NULL))) | 1030 | NULL))) |
1031 | goto out_free_fpi; | 1031 | goto out_free_fpi; |
1032 | 1032 | ||
@@ -1059,7 +1059,7 @@ static int __devinit fs_enet_probe(struct of_device *ofdev, | |||
1059 | spin_lock_init(&fep->lock); | 1059 | spin_lock_init(&fep->lock); |
1060 | spin_lock_init(&fep->tx_lock); | 1060 | spin_lock_init(&fep->tx_lock); |
1061 | 1061 | ||
1062 | mac_addr = of_get_mac_address(ofdev->node); | 1062 | mac_addr = of_get_mac_address(ofdev->dev.of_node); |
1063 | if (mac_addr) | 1063 | if (mac_addr) |
1064 | memcpy(ndev->dev_addr, mac_addr, 6); | 1064 | memcpy(ndev->dev_addr, mac_addr, 6); |
1065 | 1065 | ||
@@ -1156,8 +1156,11 @@ static struct of_device_id fs_enet_match[] = { | |||
1156 | MODULE_DEVICE_TABLE(of, fs_enet_match); | 1156 | MODULE_DEVICE_TABLE(of, fs_enet_match); |
1157 | 1157 | ||
1158 | static struct of_platform_driver fs_enet_driver = { | 1158 | static struct of_platform_driver fs_enet_driver = { |
1159 | .name = "fs_enet", | 1159 | .driver = { |
1160 | .match_table = fs_enet_match, | 1160 | .owner = THIS_MODULE, |
1161 | .name = "fs_enet", | ||
1162 | .of_match_table = fs_enet_match, | ||
1163 | }, | ||
1161 | .probe = fs_enet_probe, | 1164 | .probe = fs_enet_probe, |
1162 | .remove = fs_enet_remove, | 1165 | .remove = fs_enet_remove, |
1163 | }; | 1166 | }; |