ksz884x: fix return value of netdev_set_eeprom
authorJens Rottmann <JRottmann@LiPPERTEmbedded.de>
Tue, 23 Mar 2010 04:23:50 +0000 (04:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Mar 2010 20:06:15 +0000 (13:06 -0700)
commit4881a4f89a95cc5fef6d32953954bcc3443eefd5
tree7bbbf2c6e43538f7cb9cfbe8943d4ea02381ca46
parent8e039d84b323c4503c4d56863faa47c783660826
ksz884x: fix return value of netdev_set_eeprom

ksz884x: fix return value of netdev_set_eeprom

netdev_set_eeprom() confused ethtool by just returning 1 on error
instead of a proper -EINVAL.

Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ksz884x.c