diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-05-11 14:44:27 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-05-11 14:44:31 +0200 | 
| commit | 41fb454ebe6024f5c1e3b3cbc0abc0da762e7b51 (patch) | |
| tree | 51c50bcb67a5039448ddfa1869d7948cab1217e9 /drivers/net/arm/at91_ether.c | |
| parent | 19c1a6f5764d787113fa323ffb18be7991208f82 (diff) | |
| parent | 091bf7624d1c90cec9e578a18529f615213ff847 (diff) | |
Merge commit 'v2.6.30-rc5' into core/iommu
Merge reason: core/iommu was on an .30-rc1 base,
              update it to .30-rc5 to refresh.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/net/arm/at91_ether.c')
| -rw-r--r-- | drivers/net/arm/at91_ether.c | 32 | 
1 files changed, 19 insertions, 13 deletions
diff --git a/drivers/net/arm/at91_ether.c b/drivers/net/arm/at91_ether.c index 442938d5038..7f4bc8ae546 100644 --- a/drivers/net/arm/at91_ether.c +++ b/drivers/net/arm/at91_ether.c @@ -577,7 +577,7 @@ static void at91ether_sethashtable(struct net_device *dev)  /*   * Enable/Disable promiscuous and multicast modes.   */ -static void at91ether_set_rx_mode(struct net_device *dev) +static void at91ether_set_multicast_list(struct net_device *dev)  {  	unsigned long cfg; @@ -808,7 +808,7 @@ static int at91ether_close(struct net_device *dev)  /*   * Transmit packet.   */ -static int at91ether_tx(struct sk_buff *skb, struct net_device *dev) +static int at91ether_start_xmit(struct sk_buff *skb, struct net_device *dev)  {  	struct at91_private *lp = netdev_priv(dev); @@ -828,7 +828,7 @@ static int at91ether_tx(struct sk_buff *skb, struct net_device *dev)  		dev->trans_start = jiffies;  	} else { -		printk(KERN_ERR "at91_ether.c: at91ether_tx() called, but device is busy!\n"); +		printk(KERN_ERR "at91_ether.c: at91ether_start_xmit() called, but device is busy!\n");  		return 1;	/* if we return anything but zero, dev.c:1055 calls kfree_skb(skb)  				on this skb, he also reports -ENETDOWN and printk's, so either  				we free and return(0) or don't free and return 1 */ @@ -965,6 +965,21 @@ static void at91ether_poll_controller(struct net_device *dev)  }  #endif +static const struct net_device_ops at91ether_netdev_ops = { +	.ndo_open		= at91ether_open, +	.ndo_stop		= at91ether_close, +	.ndo_start_xmit		= at91ether_start_xmit, +	.ndo_get_stats		= at91ether_stats, +	.ndo_set_multicast_list	= at91ether_set_multicast_list, +	.ndo_set_mac_address	= set_mac_address, +	.ndo_do_ioctl		= at91ether_ioctl, +	.ndo_validate_addr	= eth_validate_addr, +	.ndo_change_mtu		= eth_change_mtu, +#ifdef CONFIG_NET_POLL_CONTROLLER +	.ndo_poll_controller	= at91ether_poll_controller, +#endif +}; +  /*   * Initialize the ethernet interface   */ @@ -1005,17 +1020,8 @@ static int __init at91ether_setup(unsigned long phy_type, unsigned short phy_add  	spin_lock_init(&lp->lock);  	ether_setup(dev); -	dev->open = at91ether_open; -	dev->stop = at91ether_close; -	dev->hard_start_xmit = at91ether_tx; -	dev->get_stats = at91ether_stats; -	dev->set_multicast_list = at91ether_set_rx_mode; -	dev->set_mac_address = set_mac_address; +	dev->netdev_ops = &at91ether_netdev_ops;  	dev->ethtool_ops = &at91ether_ethtool_ops; -	dev->do_ioctl = at91ether_ioctl; -#ifdef CONFIG_NET_POLL_CONTROLLER -	dev->poll_controller = at91ether_poll_controller; -#endif  	SET_NETDEV_DEV(dev, &pdev->dev);  | 
