ks8695net: Disable non-working ethtool operations
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 13 Jan 2011 07:50:14 +0000 (07:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jan 2011 05:48:27 +0000 (21:48 -0800)
commitc3d2a7309c95021f143c94a16ea9becc0c9b9d23
tree3339bb16e0fc43d8884cfebd8f32c417cfd880da
parent9e56790ad31d72a5a44142af462d047c0c897b29
ks8695net: Disable non-working ethtool operations

Some ethtool operations can only be implemented for the WAN port, and
not all such operations are allowed to return an error code such as
-EOPNOTSUPP.  Therefore, define two separate ethtool_ops structures
for WAN and non-WAN ports; simplify and rename the WAN-only functions.

This is completely untested as I don't have an ARM build environment.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/ks8695net.c