summaryrefslogtreecommitdiffstats
path: root/drivers/net/netx-eth.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2008-12-03 22:18:59 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-03 22:18:59 -0800
commit2cc002c4bbce4d918ab94b494d61c6991c907d5e (patch)
tree02fa1619332549003faa61d0ce5d89000de29b1e /drivers/net/netx-eth.c
parentf8269a495a1924f8b023532dd3e77423432db810 (diff)
downloadop-kernel-dev-2cc002c4bbce4d918ab94b494d61c6991c907d5e.zip
op-kernel-dev-2cc002c4bbce4d918ab94b494d61c6991c907d5e.tar.gz
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>
Diffstat (limited to 'drivers/net/netx-eth.c')
-rw-r--r--drivers/net/netx-eth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c
index b9bed82..b289a0a 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");
OpenPOWER on IntegriCloud