Browse Source

Remove nic_disable call from drivers. Call should be made at a higher level

tags/v0.9.3
Marty Connor 18 years ago
parent
commit
35f90278a8

+ 1
- 1
src/drivers/net/davicom.c View File

@@ -617,7 +617,7 @@ static int davicom_poll(struct nic *nic, int retrieve)
617 617
 /* eth_disable - Disable the interface                               */
618 618
 /*********************************************************************/
619 619
 static void davicom_disable ( struct nic *nic, struct pci_device *pci __unused ) {
620
-  nic_disable ( nic );
620
+
621 621
   whereami("davicom_disable\n");
622 622
 
623 623
   davicom_reset(nic);

+ 3
- 2
src/drivers/net/mtd80x.c View File

@@ -636,12 +636,13 @@ static void mtd_transmit(
636 636
 DISABLE - Turn off ethernet interface
637 637
 ***************************************************************************/
638 638
 static void mtd_disable ( struct nic *nic, struct pci_device *pci __unused ) {
639
-    nic_disable ( nic );
640
-    /* put the card in its initial state */
639
+
641 640
     /* Disable Tx Rx*/
642 641
     outl( mtdx.crvalue & (~TxEnable) & (~RxEnable), mtdx.ioaddr + TCRRCR);
642
+
643 643
     /* Reset the chip to erase previous misconfiguration. */
644 644
     mtd_reset(nic);
645
+
645 646
     DBG(("DISABLE\n"));
646 647
 }
647 648
 

+ 1
- 2
src/drivers/net/natsemi.c View File

@@ -723,8 +723,7 @@ natsemi_poll(struct nic *nic, int retrieve)
723 723
 
724 724
 static void
725 725
 natsemi_disable ( struct nic *nic, struct pci_device *pci __unused ) {
726
-    nic_disable ( nic );
727
-    /* merge reset and disable */
726
+
728 727
     natsemi_init(nic);
729 728
 
730 729
     /* Disable interrupts using the mask. */

+ 1
- 2
src/drivers/net/sis900.c View File

@@ -1228,8 +1228,7 @@ sis900_poll(struct nic *nic, int retrieve)
1228 1228
 
1229 1229
 static void
1230 1230
 sis900_disable ( struct nic *nic, struct pci_device *pci __unused ) {
1231
-    nic_disable ( nic );
1232
-    /* merge reset and disable */
1231
+
1233 1232
     sis900_init(nic);
1234 1233
 
1235 1234
     /* Disable interrupts by clearing the interrupt mask. */

+ 1
- 1
src/drivers/net/smc9000.c View File

@@ -792,7 +792,7 @@ static int smc9000_poll(struct nic *nic, int retrieve)
792 792
 }
793 793
 
794 794
 static void smc9000_disable ( struct nic *nic, struct isa_device *isa __unused ) {
795
-   nic_disable ( nic );
795
+
796 796
    smc_reset(nic->ioaddr);
797 797
 
798 798
    /* no more interrupts for me */

+ 1
- 1
src/drivers/net/tulip.c View File

@@ -1185,7 +1185,7 @@ static int tulip_poll(struct nic *nic, int retrieve)
1185 1185
 /* eth_disable - Disable the interface                               */
1186 1186
 /*********************************************************************/
1187 1187
 static void tulip_disable ( struct nic *nic, struct pci_device *pci __unused ) {
1188
-nic_disable ( nic );
1188
+
1189 1189
 #ifdef TULIP_DEBUG_WHERE
1190 1190
     whereami("tulip_disable\n");
1191 1191
 #endif

+ 1
- 1
src/drivers/net/via-rhine.c View File

@@ -1164,7 +1164,7 @@ rhine_probe1 (struct nic *nic, struct pci_device *pci, int ioaddr, int chip_id,
1164 1164
 
1165 1165
 static void 
1166 1166
 rhine_disable ( struct nic *nic, struct pci_device *pci __unused ) {
1167
-    nic_disable ( nic );
1167
+
1168 1168
     struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
1169 1169
     int ioaddr = tp->ioaddr;
1170 1170
 

+ 1
- 1
src/drivers/net/w89c840.c View File

@@ -576,7 +576,7 @@ static void w89c840_transmit(
576 576
 w89c840_disable - Turn off ethernet interface
577 577
 ***************************************************************************/
578 578
 static void w89c840_disable ( struct nic *nic, struct pci_device *pci __unused ) {
579
-    nic_disable ( nic );
579
+
580 580
     /* merge reset and disable */
581 581
     w89c840_reset(nic);
582 582
 

Loading…
Cancel
Save