Commit 353353e7 authored by Kumar Gala's avatar Kumar Gala Committed by Jeff Garzik

[PATCH] initialize a spin lock in gianfar driver

Initialize the mdio_lock spin lock in mii_info struct, which is otherwise
accessed prior to initialization.
Signed-off-by: default avatarJaka Mocnik <jaka@activetools.si>
Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 58a96a60
......@@ -377,6 +377,8 @@ static int init_phy(struct net_device *dev)
ADVERTISED_1000baseT_Full);
mii_info->autoneg = 1;
spin_lock_init(&mii_info->mdio_lock);
mii_info->mii_id = priv->einfo->phyid;
mii_info->dev = dev;
......
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