summaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2006-12-07 20:31:26 +0100
committerJeff Garzik <jeff@garzik.org>2006-12-11 15:31:28 +0100
commit68dc44af632944dff6c8b36013d32a254fe62de4 (patch)
treee765bf7f488e6c2eb8f1dbcf9b8707df40b1a44c /drivers/net/ucc_geth.c
parent[PATCH] ucc_geth: compilation error fixes (diff)
downloadlinux-68dc44af632944dff6c8b36013d32a254fe62de4.tar.xz
linux-68dc44af632944dff6c8b36013d32a254fe62de4.zip
[PATCH] ucc_geth: Initialize mdio_lock.
Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to '')
-rw-r--r--drivers/net/ucc_geth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 62d979b0f975..8243150f5b05 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -1852,6 +1852,8 @@ static int init_phy(struct net_device *dev)
mii_info->mdio_read = &read_phy_reg;
mii_info->mdio_write = &write_phy_reg;
+ spin_lock_init(&mii_info->mdio_lock);
+
ugeth->mii_info = mii_info;
spin_lock_irq(&ugeth->lock);