Skip to contentSkip to conversation

atmel: fix netdev ops conversion

PATCH In review Johannes Berg 2 participants 2 messages Apr 21, 2009

Subsystems (4)
lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 atmel: fix netdev ops conversion

sparse says:

drivers/net/wireless/atmel.c:1501:3: warning: Initializer entry defined twice
drivers/net/wireless/atmel.c:1505:3: also defined here

and it's correct; atmel has its own ndo_change_mtu and shouldn't use eth_change_mtu.

Cc Stephen Hemminger <[email protected]>

---
It looks like you (davem) took the initial conversion, do you want this one as well?

 drivers/net/wireless/atmel.c |    1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/atmel.c +0 -1
@@ -1500,11 +1500,10 @@ static const struct net_device_ops atmel
 	.ndo_stop		= atmel_close,
 	.ndo_change_mtu 	= atmel_change_mtu,
 	.ndo_set_mac_address 	= atmel_set_mac_address,
 	.ndo_start_xmit 	= start_tx,
 	.ndo_do_ioctl 		= atmel_ioctl,
-	.ndo_change_mtu		= eth_change_mtu,
 	.ndo_validate_addr	= eth_validate_addr,
 };
 
 struct net_device *init_atmel_card(unsigned short irq, unsigned long port,
 				   const AtmelFWType fw_type,
maintainer
#1 lore raw

From: Johannes Berg <[email protected]>
Date: Tue, 21 Apr 2009 11:05:20 +0200

Quoted 5 lines

sparse says:

drivers/net/wireless/atmel.c:1501:3: warning: Initializer entry defined twice
drivers/net/wireless/atmel.c:1505:3: also defined here

Quoted 8 lines

and it's correct; atmel has its own ndo_change_mtu and shouldn't use eth_change_mtu.

Cc Stephen Hemminger <[email protected]>

---
It looks like you (davem) took the initial conversion, do you want this one as well?

Yep, I've got it, applied, thanks Johannes!