Commit 8dad8cdf authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Jeff Garzik

Update lasi_82596 net driver to replace cli/sti with spinlock

parent 1a969c21
......@@ -1412,8 +1412,7 @@ static int i596_close(struct net_device *dev)
DEB(DEB_INIT,printk("%s: Shutting down ethercard, status was %4.4x.\n",
dev->name, lp->scb.status));
save_flags(flags);
cli();
spin_lock_irqsave(&lp->lock, flags);
wait_cmd(dev,lp,100,"close1 timed out");
lp->scb.command = CUC_ABORT | RX_ABORT;
......@@ -1422,7 +1421,7 @@ static int i596_close(struct net_device *dev)
CA(dev);
wait_cmd(dev,lp,100,"close2 timed out");
restore_flags(flags);
spin_unlock_irqrestore(&lp->lock, flags);
DEB(DEB_STRUCT,i596_display_data(dev));
i596_cleanup_cmd(dev,lp);
......
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