diff options
Diffstat (limited to 'drivers/net/ethernet/amd/amd8111e.c')
| -rw-r--r-- | drivers/net/ethernet/amd/amd8111e.c | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c index 1b1429d5d5c..068dc7cad5f 100644 --- a/drivers/net/ethernet/amd/amd8111e.c +++ b/drivers/net/ethernet/amd/amd8111e.c @@ -24,9 +24,7 @@   * GNU General Public License for more details.   *   * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 - * USA + * along with this program; if not, see <http://www.gnu.org/licenses/>.  Module Name: @@ -74,7 +72,6 @@ Revision History:  #include <linux/types.h>  #include <linux/compiler.h>  #include <linux/delay.h> -#include <linux/init.h>  #include <linux/interrupt.h>  #include <linux/ioport.h>  #include <linux/pci.h> @@ -723,6 +720,9 @@ static int amd8111e_rx_poll(struct napi_struct *napi, int budget)  	int rx_pkt_limit = budget;  	unsigned long flags; +	if (rx_pkt_limit <= 0) +		goto rx_not_empty; +  	do{  		/* process receive packets until we use the quota*/  		/* If we own the next entry, it's a new packet. Send it up. */ @@ -1711,7 +1711,6 @@ static void amd8111e_remove_one(struct pci_dev *pdev)  		free_netdev(dev);  		pci_release_regions(pdev);  		pci_disable_device(pdev); -		pci_set_drvdata(pdev, NULL);  	}  }  static void amd8111e_config_ipg(struct net_device* dev) @@ -1901,7 +1900,7 @@ static int amd8111e_probe_one(struct pci_dev *pdev,  	/* Initialize driver entry points */  	dev->netdev_ops = &amd8111e_netdev_ops; -	SET_ETHTOOL_OPS(dev, &ops); +	dev->ethtool_ops = &ops;  	dev->irq =pdev->irq;  	dev->watchdog_timeo = AMD8111E_TX_TIMEOUT;  	netif_napi_add(dev, &lp->napi, amd8111e_rx_poll, 32); @@ -1967,7 +1966,6 @@ err_free_reg:  err_disable_pdev:  	pci_disable_device(pdev); -	pci_set_drvdata(pdev, NULL);  	return err;  }  | 
