Skip to content

Commit

Permalink
ps3: removed conditional ethtool support
Browse files Browse the repository at this point in the history
Removed conditional ethtool support.  Always enabled.

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Masakazu Mokuno authored and Jeff Garzik committed Jul 24, 2007
1 parent b3bd6fe commit 78f710d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions drivers/net/ps3_gelic_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,6 @@ static int gelic_net_open(struct net_device *netdev)
return -ENOMEM;
}

#ifdef GELIC_NET_ETHTOOL
static void gelic_net_get_drvinfo (struct net_device *netdev,
struct ethtool_drvinfo *info)
{
Expand Down Expand Up @@ -1280,7 +1279,6 @@ static struct ethtool_ops gelic_net_ethtool_ops = {
.get_rx_csum = gelic_net_get_rx_csum,
.set_rx_csum = gelic_net_set_rx_csum,
};
#endif

/**
* gelic_net_tx_timeout_task - task scheduled by the watchdog timeout
Expand Down Expand Up @@ -1348,9 +1346,7 @@ static void gelic_net_setup_netdev_ops(struct net_device *netdev)
/* NAPI */
netdev->poll = &gelic_net_poll;
netdev->weight = GELIC_NET_NAPI_WEIGHT;
#ifdef GELIC_NET_ETHTOOL
netdev->ethtool_ops = &gelic_net_ethtool_ops;
#endif
}

/**
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/ps3_gelic_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#ifndef _GELIC_NET_H
#define _GELIC_NET_H

#define GELIC_NET_ETHTOOL /* use ethtool */

/* descriptors */
#define GELIC_NET_RX_DESCRIPTORS 128 /* num of descriptors */
#define GELIC_NET_TX_DESCRIPTORS 128 /* num of descriptors */
Expand Down

0 comments on commit 78f710d

Please sign in to comment.