Commit 647342a7 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christoph Hellwig

[PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in meth

parent 7359f964
...@@ -356,8 +356,6 @@ int meth_open(struct net_device *dev) ...@@ -356,8 +356,6 @@ int meth_open(struct net_device *dev)
meth_private *priv=dev->priv; meth_private *priv=dev->priv;
volatile meth_regs *regs=priv->regs; volatile meth_regs *regs=priv->regs;
MOD_INC_USE_COUNT;
/* Start DMA */ /* Start DMA */
regs->dma_ctrl|= regs->dma_ctrl|=
METH_DMA_TX_EN|/*METH_DMA_TX_INT_EN|*/ METH_DMA_TX_EN|/*METH_DMA_TX_INT_EN|*/
...@@ -380,7 +378,6 @@ int meth_release(struct net_device *dev) ...@@ -380,7 +378,6 @@ int meth_release(struct net_device *dev)
~(METH_DMA_TX_EN|METH_DMA_TX_INT_EN| ~(METH_DMA_TX_EN|METH_DMA_TX_INT_EN|
METH_DMA_RX_EN|METH_DMA_RX_INT_EN); METH_DMA_RX_EN|METH_DMA_RX_INT_EN);
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment