diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2008-12-03 22:18:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-03 22:18:59 -0800 |
commit | 2cc002c4bbce4d918ab94b494d61c6991c907d5e (patch) | |
tree | 02fa1619332549003faa61d0ce5d89000de29b1e /drivers/net/netx-eth.c | |
parent | f8269a495a1924f8b023532dd3e77423432db810 (diff) | |
download | blackbird-op-linux-2cc002c4bbce4d918ab94b494d61c6991c907d5e.tar.gz blackbird-op-linux-2cc002c4bbce4d918ab94b494d61c6991c907d5e.zip |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c index b9bed82e1d21..b289a0a2b945 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"); |