Commit fe9b9e34 authored by Jeff Garzik's avatar Jeff Garzik

Replace local var in 8139cp net driver that was accidentally removed,

due to synchronize_irq() becoming a no-op when !CONFIG_SMP.
parent f31c2e6a
......@@ -991,6 +991,8 @@ static struct net_device_stats *cp_get_stats(struct net_device *dev)
static void cp_stop_hw (struct cp_private *cp)
{
struct net_device *dev = cp->dev;
cpw16(IntrMask, 0);
cpr16(IntrMask);
cpw8(Cmd, 0);
......@@ -1002,6 +1004,10 @@ static void cp_stop_hw (struct cp_private *cp)
cp->rx_tail = 0;
cp->tx_head = cp->tx_tail = 0;
(void) dev; /* avoid compiler warning when synchronize_irq()
* disappears during !CONFIG_SMP
*/
}
static void cp_reset_hw (struct cp_private *cp)
......
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