mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 15:21:32 +00:00
Remove nic_disable call from drivers. Call should be made at a higher level
This commit is contained in:
parent
1ed6e69ea5
commit
35f90278a8
@ -617,7 +617,7 @@ static int davicom_poll(struct nic *nic, int retrieve)
|
||||
/* eth_disable - Disable the interface */
|
||||
/*********************************************************************/
|
||||
static void davicom_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
||||
nic_disable ( nic );
|
||||
|
||||
whereami("davicom_disable\n");
|
||||
|
||||
davicom_reset(nic);
|
||||
|
@ -636,12 +636,13 @@ static void mtd_transmit(
|
||||
DISABLE - Turn off ethernet interface
|
||||
***************************************************************************/
|
||||
static void mtd_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
||||
nic_disable ( nic );
|
||||
/* put the card in its initial state */
|
||||
|
||||
/* Disable Tx Rx*/
|
||||
outl( mtdx.crvalue & (~TxEnable) & (~RxEnable), mtdx.ioaddr + TCRRCR);
|
||||
|
||||
/* Reset the chip to erase previous misconfiguration. */
|
||||
mtd_reset(nic);
|
||||
|
||||
DBG(("DISABLE\n"));
|
||||
}
|
||||
|
||||
|
@ -723,8 +723,7 @@ natsemi_poll(struct nic *nic, int retrieve)
|
||||
|
||||
static void
|
||||
natsemi_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
||||
nic_disable ( nic );
|
||||
/* merge reset and disable */
|
||||
|
||||
natsemi_init(nic);
|
||||
|
||||
/* Disable interrupts using the mask. */
|
||||
|
@ -1228,8 +1228,7 @@ sis900_poll(struct nic *nic, int retrieve)
|
||||
|
||||
static void
|
||||
sis900_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
||||
nic_disable ( nic );
|
||||
/* merge reset and disable */
|
||||
|
||||
sis900_init(nic);
|
||||
|
||||
/* Disable interrupts by clearing the interrupt mask. */
|
||||
|
@ -792,7 +792,7 @@ static int smc9000_poll(struct nic *nic, int retrieve)
|
||||
}
|
||||
|
||||
static void smc9000_disable ( struct nic *nic, struct isa_device *isa __unused ) {
|
||||
nic_disable ( nic );
|
||||
|
||||
smc_reset(nic->ioaddr);
|
||||
|
||||
/* no more interrupts for me */
|
||||
|
@ -1185,7 +1185,7 @@ static int tulip_poll(struct nic *nic, int retrieve)
|
||||
/* eth_disable - Disable the interface */
|
||||
/*********************************************************************/
|
||||
static void tulip_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
||||
nic_disable ( nic );
|
||||
|
||||
#ifdef TULIP_DEBUG_WHERE
|
||||
whereami("tulip_disable\n");
|
||||
#endif
|
||||
|
@ -1164,7 +1164,7 @@ rhine_probe1 (struct nic *nic, struct pci_device *pci, int ioaddr, int chip_id,
|
||||
|
||||
static void
|
||||
rhine_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
||||
nic_disable ( nic );
|
||||
|
||||
struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
|
||||
int ioaddr = tp->ioaddr;
|
||||
|
||||
|
@ -576,7 +576,7 @@ static void w89c840_transmit(
|
||||
w89c840_disable - Turn off ethernet interface
|
||||
***************************************************************************/
|
||||
static void w89c840_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
||||
nic_disable ( nic );
|
||||
|
||||
/* merge reset and disable */
|
||||
w89c840_reset(nic);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user