aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/davicom
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2011-11-15 10:29:55 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-16 17:43:10 -0500
commitc8f44affb7244f2ac3e703cab13d55ede27621bb (patch)
tree62e7aea2916a8d7cab825fe500670c5113854c0f /drivers/net/ethernet/davicom
parenta59e2ecb859f2ab03bb2e230709f8039472ad2c3 (diff)
net: introduce and use netdev_features_t for device features sets
v2: add couple missing conversions in drivers split unexporting netdev_fix_features() implemented %pNF convert sock::sk_route_(no?)caps Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/davicom')
-rw-r--r--drivers/net/ethernet/davicom/dm9000.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c
index 438f4580bf66..26be1dfc1577 100644
--- a/drivers/net/ethernet/davicom/dm9000.c
+++ b/drivers/net/ethernet/davicom/dm9000.c
@@ -474,10 +474,11 @@ static int dm9000_nway_reset(struct net_device *dev)
474 return mii_nway_restart(&dm->mii); 474 return mii_nway_restart(&dm->mii);
475} 475}
476 476
477static int dm9000_set_features(struct net_device *dev, u32 features) 477static int dm9000_set_features(struct net_device *dev,
478 netdev_features_t features)
478{ 479{
479 board_info_t *dm = to_dm9000_board(dev); 480 board_info_t *dm = to_dm9000_board(dev);
480 u32 changed = dev->features ^ features; 481 netdev_features_t changed = dev->features ^ features;
481 unsigned long flags; 482 unsigned long flags;
482 483
483 if (!(changed & NETIF_F_RXCSUM)) 484 if (!(changed & NETIF_F_RXCSUM))