mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
[PATCH] ucc_geth: Initialize mdio_lock.
Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
1083cfe112
commit
68dc44af63
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user