aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/spider_net.c
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2007-02-20 17:32:00 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-27 04:16:02 -0500
commitd406eafee814c0e20af00a9a74f68f6993d8cb9c (patch)
tree15f23a76790f1609d9dc30cc9dd162a76ec04ea3 /drivers/net/spider_net.c
parenteb5b5b2ff96e8f3a42a46378968a166bb56bd900 (diff)
spidernet: compile break.
As of 2.6.20-git4, the spider_net driver does not compile. This appears to be due to some archaic usage involving kobjects. It also fixes a nasty double-free during ifdown of the interface. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Cc: Jens Osterkamp <Jens.Osterkamp@de.ibm.com> Cc: Kou Ishizaki <kou.ishizaki@toshiba.co.jp> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/spider_net.c')
-rw-r--r--drivers/net/spider_net.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c
index 64ed8ff5b03a..de2625411bff 100644
--- a/drivers/net/spider_net.c
+++ b/drivers/net/spider_net.c
@@ -1906,8 +1906,7 @@ spider_net_stop(struct net_device *netdev)
1906 spider_net_write_reg(card, SPIDER_NET_GHIINT1MSK, 0); 1906 spider_net_write_reg(card, SPIDER_NET_GHIINT1MSK, 0);
1907 spider_net_write_reg(card, SPIDER_NET_GHIINT2MSK, 0); 1907 spider_net_write_reg(card, SPIDER_NET_GHIINT2MSK, 0);
1908 1908
1909 /* free_irq(netdev->irq, netdev);*/ 1909 free_irq(netdev->irq, netdev);
1910 free_irq(to_pci_dev(netdev->dev.parent)->irq, netdev);
1911 1910
1912 spider_net_write_reg(card, SPIDER_NET_GDTDMACCNTR, 1911 spider_net_write_reg(card, SPIDER_NET_GDTDMACCNTR,
1913 SPIDER_NET_DMA_TX_FEND_VALUE); 1912 SPIDER_NET_DMA_TX_FEND_VALUE);
@@ -1919,8 +1918,6 @@ spider_net_stop(struct net_device *netdev)
1919 spider_net_release_tx_chain(card, 1); 1918 spider_net_release_tx_chain(card, 1);
1920 spider_net_free_rx_chain_contents(card); 1919 spider_net_free_rx_chain_contents(card);
1921 1920
1922 spider_net_free_rx_chain_contents(card);
1923
1924 spider_net_free_chain(card, &card->tx_chain); 1921 spider_net_free_chain(card, &card->tx_chain);
1925 spider_net_free_chain(card, &card->rx_chain); 1922 spider_net_free_chain(card, &card->rx_chain);
1926 1923