提交 eac0d3ff 编写于 作者: J Jonas Bonn 提交者: David S. Miller

ethoc: remove unused spinlock

Signed-off-by: NJonas Bonn <jonas@southpole.se>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e0f4258b
...@@ -185,7 +185,6 @@ MODULE_PARM_DESC(buffer_size, "DMA buffer allocation size"); ...@@ -185,7 +185,6 @@ MODULE_PARM_DESC(buffer_size, "DMA buffer allocation size");
* @netdev: pointer to network device structure * @netdev: pointer to network device structure
* @napi: NAPI structure * @napi: NAPI structure
* @msg_enable: device state flags * @msg_enable: device state flags
* @rx_lock: receive lock
* @lock: device lock * @lock: device lock
* @phy: attached PHY * @phy: attached PHY
* @mdio: MDIO bus for PHY access * @mdio: MDIO bus for PHY access
...@@ -210,7 +209,6 @@ struct ethoc { ...@@ -210,7 +209,6 @@ struct ethoc {
struct napi_struct napi; struct napi_struct napi;
u32 msg_enable; u32 msg_enable;
spinlock_t rx_lock;
spinlock_t lock; spinlock_t lock;
struct phy_device *phy; struct phy_device *phy;
...@@ -1060,7 +1058,6 @@ static int __devinit ethoc_probe(struct platform_device *pdev) ...@@ -1060,7 +1058,6 @@ static int __devinit ethoc_probe(struct platform_device *pdev)
/* setup NAPI */ /* setup NAPI */
netif_napi_add(netdev, &priv->napi, ethoc_poll, 64); netif_napi_add(netdev, &priv->napi, ethoc_poll, 64);
spin_lock_init(&priv->rx_lock);
spin_lock_init(&priv->lock); spin_lock_init(&priv->lock);
ret = register_netdev(netdev); ret = register_netdev(netdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册