atmel: fix netdev ops conversion
Subsystems (4)
Johannes Berg
maintainerPATCH 1/1 atmel: fix netdev ops conversion
sparse says:
drivers/net/wireless/atmel.c:1501:3: warning: Initializer entry defined twicedrivers/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.
---
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,
David Miller
maintainerFrom: 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 twicedrivers/net/wireless/atmel.c:1505:3: also defined here
Quoted 8 lines
and it's correct; atmel has its own
ndo_change_mtuand shouldn't useeth_change_mtu.Signed-off-by Johannes Berg <[email protected]>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!