Commit 6ed79b63 authored by Jeff Garzik's avatar Jeff Garzik

Merge redhat.com:/spare/repo/netdev-2.6/natsemi

into redhat.com:/spare/repo/netdev-2.6/misc
parents 9f28b416 f1f4d2f6
This diff is collapsed.
...@@ -115,6 +115,7 @@ enum ne2k_pci_chipsets { ...@@ -115,6 +115,7 @@ enum ne2k_pci_chipsets {
CH_Winbond_W89C940F, CH_Winbond_W89C940F,
CH_Holtek_HT80232, CH_Holtek_HT80232,
CH_Holtek_HT80229, CH_Holtek_HT80229,
CH_Winbond_89C940_8c4a,
}; };
...@@ -132,6 +133,7 @@ static struct { ...@@ -132,6 +133,7 @@ static struct {
{"Winbond W89C940F", 0}, {"Winbond W89C940F", 0},
{"Holtek HT80232", ONLY_16BIT_IO | HOLTEK_FDX}, {"Holtek HT80232", ONLY_16BIT_IO | HOLTEK_FDX},
{"Holtek HT80229", ONLY_32BIT_IO | HOLTEK_FDX | STOP_PG_0x60 }, {"Holtek HT80229", ONLY_32BIT_IO | HOLTEK_FDX | STOP_PG_0x60 },
{"Winbond W89C940(misprogrammed)", 0},
{0,} {0,}
}; };
...@@ -147,6 +149,7 @@ static struct pci_device_id ne2k_pci_tbl[] = { ...@@ -147,6 +149,7 @@ static struct pci_device_id ne2k_pci_tbl[] = {
{ 0x1050, 0x5a5a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Winbond_W89C940F }, { 0x1050, 0x5a5a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Winbond_W89C940F },
{ 0x12c3, 0x0058, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Holtek_HT80232 }, { 0x12c3, 0x0058, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Holtek_HT80232 },
{ 0x12c3, 0x5598, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Holtek_HT80229 }, { 0x12c3, 0x5598, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Holtek_HT80229 },
{ 0x8c4a, 0x1980, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Winbond_89C940_8c4a },
{ 0, } { 0, }
}; };
MODULE_DEVICE_TABLE(pci, ne2k_pci_tbl); MODULE_DEVICE_TABLE(pci, ne2k_pci_tbl);
......
...@@ -139,7 +139,6 @@ TODO: bugfixes (no bugs known as of right now) ...@@ -139,7 +139,6 @@ TODO: bugfixes (no bugs known as of right now)
#include <linux/config.h> #include <linux/config.h>
#include <linux/version.h> #include <linux/version.h>
#include <linux/module.h> #include <linux/module.h>
#include <asm/io.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
......
...@@ -729,10 +729,6 @@ static int smctr_close(struct net_device *dev) ...@@ -729,10 +729,6 @@ static int smctr_close(struct net_device *dev)
netif_stop_queue(dev); netif_stop_queue(dev);
#ifdef MODULE
MOD_DEC_USE_COUNT;
#endif
tp->cleanup = 1; tp->cleanup = 1;
/* Check to see if adapter is already in a closed state. */ /* Check to see if adapter is already in a closed state. */
...@@ -3490,10 +3486,6 @@ static int smctr_open(struct net_device *dev) ...@@ -3490,10 +3486,6 @@ static int smctr_open(struct net_device *dev)
if(err < 0) if(err < 0)
return (err); return (err);
#ifdef MODULE
MOD_INC_USE_COUNT;
#endif
return (err); return (err);
} }
......
...@@ -1313,8 +1313,6 @@ fst_open ( struct net_device *dev ) ...@@ -1313,8 +1313,6 @@ fst_open ( struct net_device *dev )
if ( err ) if ( err )
return err; return err;
MOD_INC_USE_COUNT;
fst_openport ( dev_to_port ( dev )); fst_openport ( dev_to_port ( dev ));
netif_wake_queue ( dev ); netif_wake_queue ( dev );
return 0; return 0;
...@@ -1326,7 +1324,6 @@ fst_close ( struct net_device *dev ) ...@@ -1326,7 +1324,6 @@ fst_close ( struct net_device *dev )
netif_stop_queue ( dev ); netif_stop_queue ( dev );
fst_closeport ( dev_to_port ( dev )); fst_closeport ( dev_to_port ( dev ));
hdlc_close ( dev_to_hdlc ( dev )); hdlc_close ( dev_to_hdlc ( dev ));
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
...@@ -3165,7 +3165,6 @@ int cpc_open(struct net_device *dev) ...@@ -3165,7 +3165,6 @@ int cpc_open(struct net_device *dev)
return result; return result;
} }
MOD_INC_USE_COUNT;
sprintf(ifr.ifr_name, "%s", dev->name); sprintf(ifr.ifr_name, "%s", dev->name);
cpc_opench(d); cpc_opench(d);
netif_start_queue(dev); netif_start_queue(dev);
...@@ -3201,7 +3200,6 @@ int cpc_close(struct net_device *dev) ...@@ -3201,7 +3200,6 @@ int cpc_close(struct net_device *dev)
} }
#endif #endif
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
...@@ -360,6 +360,7 @@ static int orinoco_pci_resume(struct pci_dev *pdev) ...@@ -360,6 +360,7 @@ static int orinoco_pci_resume(struct pci_dev *pdev)
} }
static struct pci_device_id orinoco_pci_pci_id_table[] = { static struct pci_device_id orinoco_pci_pci_id_table[] = {
{0x1260, 0x3872, PCI_ANY_ID, PCI_ANY_ID,},
{0x1260, 0x3873, PCI_ANY_ID, PCI_ANY_ID,}, {0x1260, 0x3873, PCI_ANY_ID, PCI_ANY_ID,},
{0,}, {0,},
}; };
......
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