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 <u.kleine-koenig@pengutronix.de> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f8269a495a
commit
2cc002c4bb
@@ -401,6 +401,8 @@ static int netx_eth_drv_probe(struct platform_device *pdev)
|
|||||||
priv->xmac_base = priv->xc->xmac_base;
|
priv->xmac_base = priv->xc->xmac_base;
|
||||||
priv->sram_base = priv->xc->sram_base;
|
priv->sram_base = priv->xc->sram_base;
|
||||||
|
|
||||||
|
spin_lock_init(&priv->lock);
|
||||||
|
|
||||||
ret = pfifo_request(PFIFO_MASK(priv->id));
|
ret = pfifo_request(PFIFO_MASK(priv->id));
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printk("unable to request PFIFO\n");
|
printk("unable to request PFIFO\n");
|
||||||
|
Reference in New Issue
Block a user