]> err.no Git - linux-2.6/commitdiff
jmr3927: do not call tc35815_killall().
authorRalf Baechle <ralf@linux-mips.org>
Tue, 27 Feb 2007 18:15:01 +0000 (18:15 +0000)
committerJeff Garzik <jeff@garzik.org>
Sat, 3 Mar 2007 00:55:07 +0000 (19:55 -0500)
No need to stop tc35815 before resetting the board.  This fixes the
build of tc35815 as a module.  This also means there is no caller of
tc35815_killall left, so remove that function also.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
arch/mips/jmr3927/rbhma3100/setup.c
drivers/net/tc35815.c

index 7ca3d6d07b34f9c9998ed7e136c2722fcfbe9e92..ecabe5b084894bee0c68ea567a01277fb89e1694 100644 (file)
@@ -137,10 +137,6 @@ int jmr3927_ccfg_toeon = 0;
 
 static inline void do_reset(void)
 {
-#ifdef CONFIG_TC35815
-       extern void tc35815_killall(void);
-       tc35815_killall();
-#endif
 #if 1  /* Resetting PCI bus */
        jmr3927_ioc_reg_out(0, JMR3927_IOC_RESET_ADDR);
        jmr3927_ioc_reg_out(JMR3927_IOC_RESET_PCI, JMR3927_IOC_RESET_ADDR);
index eae2b63951f1ac78d4e8f856e11bd3cfded63ece..e3a7e3ceab772e42de6f3481bc262a1527c8de03 100644 (file)
@@ -1703,19 +1703,6 @@ static void tc35815_chip_init(struct net_device *dev)
        spin_unlock_irqrestore(&lp->lock, flags);
 }
 
-/* XXX */
-void
-tc35815_killall(void)
-{
-       struct net_device *dev;
-
-       for (dev = root_tc35815_dev; dev; dev = ((struct tc35815_local *)dev->priv)->next_module) {
-               if (dev->flags&IFF_UP){
-                       dev->stop(dev);
-               }
-       }
-}
-
 static struct pci_driver tc35815_driver = {
        .name = TC35815_MODULE_NAME,
        .probe = tc35815_probe,