Skip to content

Commit

Permalink
[PATCH] ucc_geth: Initialize mdio_lock.
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Scott Wood authored and Jeff Garzik committed Dec 11, 2006
1 parent 1083cfe commit 68dc44a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 68dc44a

Please sign in to comment.