aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r--drivers/net/ucc_geth.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 4a8d5747204a..1c095c63f98f 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -39,7 +39,7 @@
39#include <asm/ucc_fast.h> 39#include <asm/ucc_fast.h>
40 40
41#include "ucc_geth.h" 41#include "ucc_geth.h"
42#include "ucc_geth_mii.h" 42#include "fsl_pq_mdio.h"
43 43
44#undef DEBUG 44#undef DEBUG
45 45
@@ -1557,7 +1557,7 @@ static int init_phy(struct net_device *dev)
1557 of_node_put(phy); 1557 of_node_put(phy);
1558 of_node_put(mdio); 1558 of_node_put(mdio);
1559 1559
1560 uec_mdio_bus_name(bus_name, mdio); 1560 fsl_pq_mdio_bus_name(bus_name, mdio);
1561 snprintf(phy_id, sizeof(phy_id), "%s:%02x", 1561 snprintf(phy_id, sizeof(phy_id), "%s:%02x",
1562 bus_name, *id); 1562 bus_name, *id);
1563 1563
@@ -3657,7 +3657,8 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
3657 if (err) 3657 if (err)
3658 return -1; 3658 return -1;
3659 3659
3660 snprintf(ug_info->mdio_bus, MII_BUS_ID_SIZE, "%x", res.start); 3660 snprintf(ug_info->mdio_bus, MII_BUS_ID_SIZE, "%x",
3661 res.start&0xfffff);
3661 } 3662 }
3662 3663
3663 /* get the phy interface type, or default to MII */ 3664 /* get the phy interface type, or default to MII */
@@ -3803,11 +3804,6 @@ static int __init ucc_geth_init(void)
3803{ 3804{
3804 int i, ret; 3805 int i, ret;
3805 3806
3806 ret = uec_mdio_init();
3807
3808 if (ret)
3809 return ret;
3810
3811 if (netif_msg_drv(&debug)) 3807 if (netif_msg_drv(&debug))
3812 printk(KERN_INFO "ucc_geth: " DRV_DESC "\n"); 3808 printk(KERN_INFO "ucc_geth: " DRV_DESC "\n");
3813 for (i = 0; i < 8; i++) 3809 for (i = 0; i < 8; i++)
@@ -3816,16 +3812,12 @@ static int __init ucc_geth_init(void)
3816 3812
3817 ret = of_register_platform_driver(&ucc_geth_driver); 3813 ret = of_register_platform_driver(&ucc_geth_driver);
3818 3814
3819 if (ret)
3820 uec_mdio_exit();
3821
3822 return ret; 3815 return ret;
3823} 3816}
3824 3817
3825static void __exit ucc_geth_exit(void) 3818static void __exit ucc_geth_exit(void)
3826{ 3819{
3827 of_unregister_platform_driver(&ucc_geth_driver); 3820 of_unregister_platform_driver(&ucc_geth_driver);
3828 uec_mdio_exit();
3829} 3821}
3830 3822
3831module_init(ucc_geth_init); 3823module_init(ucc_geth_init);