From: Uwe Kleine-König Date: Thu, 4 Dec 2008 06:18:59 +0000 (-0800) Subject: netx-eth: initialize per device spinlock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cc002c4bbce4d918ab94b494d61c6991c907d5e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git netx-eth: initialize per device spinlock The spinlock used in the netx-eth driver was never properly initialized. This was noticed using CONFIG_DEBUG_SPINLOCK=y Signed-off-by: Uwe Kleine-König Acked-by: Sascha Hauer Signed-off-by: David S. Miller --- diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c index b9bed82e1d2..b289a0a2b94 100644 --- a/drivers/net/netx-eth.c +++ b/drivers/net/netx-eth.c @@ -401,6 +401,8 @@ static int netx_eth_drv_probe(struct platform_device *pdev) priv->xmac_base = priv->xc->xmac_base; priv->sram_base = priv->xc->sram_base; + spin_lock_init(&priv->lock); + ret = pfifo_request(PFIFO_MASK(priv->id)); if (ret) { printk("unable to request PFIFO\n");