From: Scott Wood Date: Thu, 7 Dec 2006 19:31:26 +0000 (-0600) Subject: [PATCH] ucc_geth: Initialize mdio_lock. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68dc44af632944dff6c8b36013d32a254fe62de4;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] ucc_geth: Initialize mdio_lock. Signed-off-by: Scott Wood Signed-off-by: Jeff Garzik --- 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);