aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibm_newemac
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-01-30 19:25:51 -0500
committerPaul Mackerras <paulus@samba.org>2008-01-30 19:25:51 -0500
commitbd45ac0c5daae35e7c71138172e63df5cf644cf6 (patch)
tree5eb5a599bf6a9d7a8a34e802db932aa9e9555de4 /drivers/net/ibm_newemac
parent4eece4ccf997c0e6d8fdad3d842e37b16b8d705f (diff)
parent5bdeae46be6dfe9efa44a548bd622af325f4bdb4 (diff)
Merge branch 'linux-2.6'
Diffstat (limited to 'drivers/net/ibm_newemac')
-rw-r--r--drivers/net/ibm_newemac/core.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c
index fced441face6..e6c69f77259b 100644
--- a/drivers/net/ibm_newemac/core.c
+++ b/drivers/net/ibm_newemac/core.c
@@ -1298,7 +1298,6 @@ static int emac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
1298 return emac_xmit_finish(dev, len); 1298 return emac_xmit_finish(dev, len);
1299} 1299}
1300 1300
1301#ifdef CONFIG_IBM_NEW_EMAC_TAH
1302static inline int emac_xmit_split(struct emac_instance *dev, int slot, 1301static inline int emac_xmit_split(struct emac_instance *dev, int slot,
1303 u32 pd, int len, int last, u16 base_ctrl) 1302 u32 pd, int len, int last, u16 base_ctrl)
1304{ 1303{
@@ -1411,9 +1410,6 @@ static int emac_start_xmit_sg(struct sk_buff *skb, struct net_device *ndev)
1411 DBG2(dev, "stopped TX queue" NL); 1410 DBG2(dev, "stopped TX queue" NL);
1412 return 1; 1411 return 1;
1413} 1412}
1414#else
1415# define emac_start_xmit_sg emac_start_xmit
1416#endif /* !defined(CONFIG_IBM_NEW_EMAC_TAH) */
1417 1413
1418/* Tx lock BHs */ 1414/* Tx lock BHs */
1419static void emac_parse_tx_error(struct emac_instance *dev, u16 ctrl) 1415static void emac_parse_tx_error(struct emac_instance *dev, u16 ctrl)
@@ -2684,13 +2680,8 @@ static int __devinit emac_probe(struct of_device *ofdev,
2684 2680
2685 /* Fill in the driver function table */ 2681 /* Fill in the driver function table */
2686 ndev->open = &emac_open; 2682 ndev->open = &emac_open;
2687#ifdef CONFIG_IBM_NEW_EMAC_TAH 2683 if (dev->tah_dev)
2688 if (dev->tah_dev) {
2689 ndev->hard_start_xmit = &emac_start_xmit_sg;
2690 ndev->features |= NETIF_F_IP_CSUM | NETIF_F_SG; 2684 ndev->features |= NETIF_F_IP_CSUM | NETIF_F_SG;
2691 } else
2692#endif
2693 ndev->hard_start_xmit = &emac_start_xmit;
2694 ndev->tx_timeout = &emac_tx_timeout; 2685 ndev->tx_timeout = &emac_tx_timeout;
2695 ndev->watchdog_timeo = 5 * HZ; 2686 ndev->watchdog_timeo = 5 * HZ;
2696 ndev->stop = &emac_close; 2687 ndev->stop = &emac_close;
@@ -2698,8 +2689,11 @@ static int __devinit emac_probe(struct of_device *ofdev,
2698 ndev->set_multicast_list = &emac_set_multicast_list; 2689 ndev->set_multicast_list = &emac_set_multicast_list;
2699 ndev->do_ioctl = &emac_ioctl; 2690 ndev->do_ioctl = &emac_ioctl;
2700 if (emac_phy_supports_gige(dev->phy_mode)) { 2691 if (emac_phy_supports_gige(dev->phy_mode)) {
2692 ndev->hard_start_xmit = &emac_start_xmit_sg;
2701 ndev->change_mtu = &emac_change_mtu; 2693 ndev->change_mtu = &emac_change_mtu;
2702 dev->commac.ops = &emac_commac_sg_ops; 2694 dev->commac.ops = &emac_commac_sg_ops;
2695 } else {
2696 ndev->hard_start_xmit = &emac_start_xmit;
2703 } 2697 }
2704 SET_ETHTOOL_OPS(ndev, &emac_ethtool_ops); 2698 SET_ETHTOOL_OPS(ndev, &emac_ethtool_ops);
2705 2699