diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-30 23:54:02 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-02 06:04:32 -0400 |
commit | 40cd3a4564ed6b7bc0279430120ca0e9b83cf486 (patch) | |
tree | 1b7b7705613d915f4f2ca2f79bec4d246171086a /drivers/net/ucc_geth.c | |
parent | 9f9a3b8a06b7965335bfe5162c1a50e4d9c3859b (diff) |
[POWERPC] Rename get_property to of_get_property: drivers
These are all the remaining instances of get_property. Simple rename of
get_property to of_get_property.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r-- | drivers/net/ucc_geth.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 16b9acdabbe8..d7aff8189377 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -3787,7 +3787,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3787 | 3787 | ||
3788 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3788 | ugeth_vdbg("%s: IN", __FUNCTION__); |
3789 | 3789 | ||
3790 | prop = get_property(np, "device-id", NULL); | 3790 | prop = of_get_property(np, "device-id", NULL); |
3791 | ucc_num = *prop - 1; | 3791 | ucc_num = *prop - 1; |
3792 | if ((ucc_num < 0) || (ucc_num > 7)) | 3792 | if ((ucc_num < 0) || (ucc_num > 7)) |
3793 | return -ENODEV; | 3793 | return -ENODEV; |
@@ -3795,9 +3795,9 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3795 | ug_info = &ugeth_info[ucc_num]; | 3795 | ug_info = &ugeth_info[ucc_num]; |
3796 | ug_info->uf_info.ucc_num = ucc_num; | 3796 | ug_info->uf_info.ucc_num = ucc_num; |
3797 | 3797 | ||
3798 | prop = get_property(np, "rx-clock", NULL); | 3798 | prop = of_get_property(np, "rx-clock", NULL); |
3799 | ug_info->uf_info.rx_clock = *prop; | 3799 | ug_info->uf_info.rx_clock = *prop; |
3800 | prop = get_property(np, "tx-clock", NULL); | 3800 | prop = of_get_property(np, "tx-clock", NULL); |
3801 | ug_info->uf_info.tx_clock = *prop; | 3801 | ug_info->uf_info.tx_clock = *prop; |
3802 | err = of_address_to_resource(np, 0, &res); | 3802 | err = of_address_to_resource(np, 0, &res); |
3803 | if (err) | 3803 | if (err) |
@@ -3806,23 +3806,23 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3806 | ug_info->uf_info.regs = res.start; | 3806 | ug_info->uf_info.regs = res.start; |
3807 | ug_info->uf_info.irq = irq_of_parse_and_map(np, 0); | 3807 | ug_info->uf_info.irq = irq_of_parse_and_map(np, 0); |
3808 | 3808 | ||
3809 | ph = get_property(np, "phy-handle", NULL); | 3809 | ph = of_get_property(np, "phy-handle", NULL); |
3810 | phy = of_find_node_by_phandle(*ph); | 3810 | phy = of_find_node_by_phandle(*ph); |
3811 | 3811 | ||
3812 | if (phy == NULL) | 3812 | if (phy == NULL) |
3813 | return -ENODEV; | 3813 | return -ENODEV; |
3814 | 3814 | ||
3815 | /* set the PHY address */ | 3815 | /* set the PHY address */ |
3816 | prop = get_property(phy, "reg", NULL); | 3816 | prop = of_get_property(phy, "reg", NULL); |
3817 | if (prop == NULL) | 3817 | if (prop == NULL) |
3818 | return -1; | 3818 | return -1; |
3819 | ug_info->phy_address = *prop; | 3819 | ug_info->phy_address = *prop; |
3820 | 3820 | ||
3821 | /* get the phy interface type, or default to MII */ | 3821 | /* get the phy interface type, or default to MII */ |
3822 | prop = get_property(np, "interface-type", NULL); | 3822 | prop = of_get_property(np, "interface-type", NULL); |
3823 | if (!prop) { | 3823 | if (!prop) { |
3824 | /* handle interface property present in old trees */ | 3824 | /* handle interface property present in old trees */ |
3825 | prop = get_property(phy, "interface", NULL); | 3825 | prop = of_get_property(phy, "interface", NULL); |
3826 | if (prop != NULL) | 3826 | if (prop != NULL) |
3827 | phy_interface = enet_to_phy_interface[*prop]; | 3827 | phy_interface = enet_to_phy_interface[*prop]; |
3828 | else | 3828 | else |
@@ -3832,10 +3832,10 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3832 | } | 3832 | } |
3833 | 3833 | ||
3834 | /* get speed, or derive from interface */ | 3834 | /* get speed, or derive from interface */ |
3835 | prop = get_property(np, "max-speed", NULL); | 3835 | prop = of_get_property(np, "max-speed", NULL); |
3836 | if (!prop) { | 3836 | if (!prop) { |
3837 | /* handle interface property present in old trees */ | 3837 | /* handle interface property present in old trees */ |
3838 | prop = get_property(phy, "interface", NULL); | 3838 | prop = of_get_property(phy, "interface", NULL); |
3839 | if (prop != NULL) | 3839 | if (prop != NULL) |
3840 | max_speed = enet_to_speed[*prop]; | 3840 | max_speed = enet_to_speed[*prop]; |
3841 | } else { | 3841 | } else { |