Commit 68dc44af authored by Scott Wood's avatar Scott Wood Committed by Jeff Garzik

[PATCH] ucc_geth: Initialize mdio_lock.

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 1083cfe1
...@@ -1852,6 +1852,8 @@ static int init_phy(struct net_device *dev) ...@@ -1852,6 +1852,8 @@ static int init_phy(struct net_device *dev)
mii_info->mdio_read = &read_phy_reg; mii_info->mdio_read = &read_phy_reg;
mii_info->mdio_write = &write_phy_reg; mii_info->mdio_write = &write_phy_reg;
spin_lock_init(&mii_info->mdio_lock);
ugeth->mii_info = mii_info; ugeth->mii_info = mii_info;
spin_lock_irq(&ugeth->lock); spin_lock_irq(&ugeth->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment