aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-31 15:50:50 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 04:13:38 -0400
commit6518bbb803fe02b15a3211c8db2afdff0ac4f808 (patch)
tree85b5df710063c22164150fb4fcf37098f188240a
parentdbf02fae406daf4d583a279743869c686024c341 (diff)
irda: convert to netdev_tx_t
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/irda/ali-ircc.c12
-rw-r--r--drivers/net/irda/donauboe.c2
-rw-r--r--drivers/net/irda/irda-usb.c6
-rw-r--r--drivers/net/irda/kingsun-sir.c5
-rw-r--r--drivers/net/irda/ks959-sir.c3
-rw-r--r--drivers/net/irda/ksdazzle-sir.c3
-rw-r--r--drivers/net/irda/mcs7780.c3
-rw-r--r--drivers/net/irda/mcs7780.h3
-rw-r--r--drivers/net/irda/nsc-ircc.c12
-rw-r--r--drivers/net/irda/sir_dev.c3
-rw-r--r--drivers/net/irda/smsc-ircc2.c15
-rw-r--r--drivers/net/irda/stir4200.c3
-rw-r--r--drivers/net/irda/via-ircc.c16
-rw-r--r--drivers/net/irda/vlsi_ir.c3
-rw-r--r--drivers/net/irda/w83977af_ir.c6
-rw-r--r--net/irda/irlan/irlan_eth.c6
16 files changed, 64 insertions, 37 deletions
diff --git a/drivers/net/irda/ali-ircc.c b/drivers/net/irda/ali-ircc.c
index f0d0cea6e329..12c7b006f767 100644
--- a/drivers/net/irda/ali-ircc.c
+++ b/drivers/net/irda/ali-ircc.c
@@ -111,7 +111,8 @@ static int ali_ircc_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd
111static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud); 111static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud);
112 112
113/* SIR function */ 113/* SIR function */
114static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev); 114static netdev_tx_t ali_ircc_sir_hard_xmit(struct sk_buff *skb,
115 struct net_device *dev);
115static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self); 116static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self);
116static void ali_ircc_sir_receive(struct ali_ircc_cb *self); 117static void ali_ircc_sir_receive(struct ali_ircc_cb *self);
117static void ali_ircc_sir_write_wakeup(struct ali_ircc_cb *self); 118static void ali_ircc_sir_write_wakeup(struct ali_ircc_cb *self);
@@ -119,7 +120,8 @@ static int ali_ircc_sir_write(int iobase, int fifo_size, __u8 *buf, int len);
119static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, __u32 speed); 120static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, __u32 speed);
120 121
121/* FIR function */ 122/* FIR function */
122static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev); 123static netdev_tx_t ali_ircc_fir_hard_xmit(struct sk_buff *skb,
124 struct net_device *dev);
123static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 speed); 125static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 speed);
124static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self); 126static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self);
125static int ali_ircc_dma_receive(struct ali_ircc_cb *self); 127static int ali_ircc_dma_receive(struct ali_ircc_cb *self);
@@ -1435,7 +1437,8 @@ static int ali_ircc_net_close(struct net_device *dev)
1435 * Transmit the frame 1437 * Transmit the frame
1436 * 1438 *
1437 */ 1439 */
1438static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev) 1440static netdev_tx_t ali_ircc_fir_hard_xmit(struct sk_buff *skb,
1441 struct net_device *dev)
1439{ 1442{
1440 struct ali_ircc_cb *self; 1443 struct ali_ircc_cb *self;
1441 unsigned long flags; 1444 unsigned long flags;
@@ -1957,7 +1960,8 @@ static int ali_ircc_dma_receive_complete(struct ali_ircc_cb *self)
1957 * Transmit the frame! 1960 * Transmit the frame!
1958 * 1961 *
1959 */ 1962 */
1960static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev) 1963static netdev_tx_t ali_ircc_sir_hard_xmit(struct sk_buff *skb,
1964 struct net_device *dev)
1961{ 1965{
1962 struct ali_ircc_cb *self; 1966 struct ali_ircc_cb *self;
1963 unsigned long flags; 1967 unsigned long flags;
diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c
index e4e905698dc7..2d7b5c1d5572 100644
--- a/drivers/net/irda/donauboe.c
+++ b/drivers/net/irda/donauboe.c
@@ -970,7 +970,7 @@ toshoboe_probe (struct toshoboe_cb *self)
970/* Netdev style code */ 970/* Netdev style code */
971 971
972/* Transmit something */ 972/* Transmit something */
973static int 973static netdev_tx_t
974toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev) 974toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)
975{ 975{
976 struct toshoboe_cb *self; 976 struct toshoboe_cb *self;
diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c
index 6a1aa7a40fe2..215adf6377d0 100644
--- a/drivers/net/irda/irda-usb.c
+++ b/drivers/net/irda/irda-usb.c
@@ -111,7 +111,8 @@ static void irda_usb_init_qos(struct irda_usb_cb *self) ;
111static struct irda_class_desc *irda_usb_find_class_desc(struct usb_interface *intf); 111static struct irda_class_desc *irda_usb_find_class_desc(struct usb_interface *intf);
112static void irda_usb_disconnect(struct usb_interface *intf); 112static void irda_usb_disconnect(struct usb_interface *intf);
113static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self); 113static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self);
114static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *dev); 114static netdev_tx_t irda_usb_hard_xmit(struct sk_buff *skb,
115 struct net_device *dev);
115static int irda_usb_open(struct irda_usb_cb *self); 116static int irda_usb_open(struct irda_usb_cb *self);
116static void irda_usb_close(struct irda_usb_cb *self); 117static void irda_usb_close(struct irda_usb_cb *self);
117static void speed_bulk_callback(struct urb *urb); 118static void speed_bulk_callback(struct urb *urb);
@@ -381,7 +382,8 @@ static void speed_bulk_callback(struct urb *urb)
381/* 382/*
382 * Send an IrDA frame to the USB dongle (for transmission) 383 * Send an IrDA frame to the USB dongle (for transmission)
383 */ 384 */
384static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *netdev) 385static netdev_tx_t irda_usb_hard_xmit(struct sk_buff *skb,
386 struct net_device *netdev)
385{ 387{
386 struct irda_usb_cb *self = netdev_priv(netdev); 388 struct irda_usb_cb *self = netdev_priv(netdev);
387 struct urb *urb = self->tx_urb; 389 struct urb *urb = self->tx_urb;
diff --git a/drivers/net/irda/kingsun-sir.c b/drivers/net/irda/kingsun-sir.c
index c3e4e2c435ba..2fc30b449eea 100644
--- a/drivers/net/irda/kingsun-sir.c
+++ b/drivers/net/irda/kingsun-sir.c
@@ -150,7 +150,8 @@ static void kingsun_send_irq(struct urb *urb)
150/* 150/*
151 * Called from net/core when new frame is available. 151 * Called from net/core when new frame is available.
152 */ 152 */
153static int kingsun_hard_xmit(struct sk_buff *skb, struct net_device *netdev) 153static netdev_tx_t kingsun_hard_xmit(struct sk_buff *skb,
154 struct net_device *netdev)
154{ 155{
155 struct kingsun_cb *kingsun; 156 struct kingsun_cb *kingsun;
156 int wraplen; 157 int wraplen;
@@ -416,7 +417,7 @@ static int kingsun_net_ioctl(struct net_device *netdev, struct ifreq *rq,
416} 417}
417 418
418static const struct net_device_ops kingsun_ops = { 419static const struct net_device_ops kingsun_ops = {
419 .ndo_start_xmit = kingsun_hard_xmit, 420 .ndo_start_xmit = kingsun_hard_xmit,
420 .ndo_open = kingsun_net_open, 421 .ndo_open = kingsun_net_open,
421 .ndo_stop = kingsun_net_close, 422 .ndo_stop = kingsun_net_close,
422 .ndo_do_ioctl = kingsun_net_ioctl, 423 .ndo_do_ioctl = kingsun_net_ioctl,
diff --git a/drivers/net/irda/ks959-sir.c b/drivers/net/irda/ks959-sir.c
index d73b8b64fcb9..f4d13fc51cbc 100644
--- a/drivers/net/irda/ks959-sir.c
+++ b/drivers/net/irda/ks959-sir.c
@@ -385,7 +385,8 @@ static void ks959_send_irq(struct urb *urb)
385/* 385/*
386 * Called from net/core when new frame is available. 386 * Called from net/core when new frame is available.
387 */ 387 */
388static int ks959_hard_xmit(struct sk_buff *skb, struct net_device *netdev) 388static netdev_tx_t ks959_hard_xmit(struct sk_buff *skb,
389 struct net_device *netdev)
389{ 390{
390 struct ks959_cb *kingsun; 391 struct ks959_cb *kingsun;
391 unsigned int wraplen; 392 unsigned int wraplen;
diff --git a/drivers/net/irda/ksdazzle-sir.c b/drivers/net/irda/ksdazzle-sir.c
index 1ef45ec74422..5f9d73353972 100644
--- a/drivers/net/irda/ksdazzle-sir.c
+++ b/drivers/net/irda/ksdazzle-sir.c
@@ -298,7 +298,8 @@ static void ksdazzle_send_irq(struct urb *urb)
298/* 298/*
299 * Called from net/core when new frame is available. 299 * Called from net/core when new frame is available.
300 */ 300 */
301static int ksdazzle_hard_xmit(struct sk_buff *skb, struct net_device *netdev) 301static netdev_tx_t ksdazzle_hard_xmit(struct sk_buff *skb,
302 struct net_device *netdev)
302{ 303{
303 struct ksdazzle_cb *kingsun; 304 struct ksdazzle_cb *kingsun;
304 unsigned int wraplen; 305 unsigned int wraplen;
diff --git a/drivers/net/irda/mcs7780.c b/drivers/net/irda/mcs7780.c
index f4df1001983c..b3d30bcb88e7 100644
--- a/drivers/net/irda/mcs7780.c
+++ b/drivers/net/irda/mcs7780.c
@@ -817,7 +817,8 @@ static void mcs_send_irq(struct urb *urb)
817} 817}
818 818
819/* Transmit callback funtion. */ 819/* Transmit callback funtion. */
820static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *ndev) 820static netdev_tx_t mcs_hard_xmit(struct sk_buff *skb,
821 struct net_device *ndev)
821{ 822{
822 unsigned long flags; 823 unsigned long flags;
823 struct mcs_cb *mcs; 824 struct mcs_cb *mcs;
diff --git a/drivers/net/irda/mcs7780.h b/drivers/net/irda/mcs7780.h
index 6bdc621e67c6..b10689b2887c 100644
--- a/drivers/net/irda/mcs7780.h
+++ b/drivers/net/irda/mcs7780.h
@@ -156,7 +156,8 @@ static int mcs_net_open(struct net_device *netdev);
156 156
157static void mcs_receive_irq(struct urb *urb); 157static void mcs_receive_irq(struct urb *urb);
158static void mcs_send_irq(struct urb *urb); 158static void mcs_send_irq(struct urb *urb);
159static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *netdev); 159static netdev_tx_t mcs_hard_xmit(struct sk_buff *skb,
160 struct net_device *netdev);
160 161
161static int mcs_probe(struct usb_interface *intf, 162static int mcs_probe(struct usb_interface *intf,
162 const struct usb_device_id *id); 163 const struct usb_device_id *id);
diff --git a/drivers/net/irda/nsc-ircc.c b/drivers/net/irda/nsc-ircc.c
index 51ca89c9a0ba..2413295ebd90 100644
--- a/drivers/net/irda/nsc-ircc.c
+++ b/drivers/net/irda/nsc-ircc.c
@@ -173,8 +173,10 @@ static int nsc_ircc_setup(chipio_t *info);
173static void nsc_ircc_pio_receive(struct nsc_ircc_cb *self); 173static void nsc_ircc_pio_receive(struct nsc_ircc_cb *self);
174static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self); 174static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self);
175static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase); 175static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase);
176static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev); 176static netdev_tx_t nsc_ircc_hard_xmit_sir(struct sk_buff *skb,
177static int nsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev); 177 struct net_device *dev);
178static netdev_tx_t nsc_ircc_hard_xmit_fir(struct sk_buff *skb,
179 struct net_device *dev);
178static int nsc_ircc_pio_write(int iobase, __u8 *buf, int len, int fifo_size); 180static int nsc_ircc_pio_write(int iobase, __u8 *buf, int len, int fifo_size);
179static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase); 181static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase);
180static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 baud); 182static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 baud);
@@ -1355,7 +1357,8 @@ static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 speed)
1355 * Transmit the frame! 1357 * Transmit the frame!
1356 * 1358 *
1357 */ 1359 */
1358static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) 1360static netdev_tx_t nsc_ircc_hard_xmit_sir(struct sk_buff *skb,
1361 struct net_device *dev)
1359{ 1362{
1360 struct nsc_ircc_cb *self; 1363 struct nsc_ircc_cb *self;
1361 unsigned long flags; 1364 unsigned long flags;
@@ -1427,7 +1430,8 @@ static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev)
1427 return NETDEV_TX_OK; 1430 return NETDEV_TX_OK;
1428} 1431}
1429 1432
1430static int nsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev) 1433static netdev_tx_t nsc_ircc_hard_xmit_fir(struct sk_buff *skb,
1434 struct net_device *dev)
1431{ 1435{
1432 struct nsc_ircc_cb *self; 1436 struct nsc_ircc_cb *self;
1433 unsigned long flags; 1437 unsigned long flags;
diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c
index 71dce20e62be..4b2a1a9eac2a 100644
--- a/drivers/net/irda/sir_dev.c
+++ b/drivers/net/irda/sir_dev.c
@@ -582,7 +582,8 @@ EXPORT_SYMBOL(sirdev_receive);
582 582
583/* callbacks from network layer */ 583/* callbacks from network layer */
584 584
585static int sirdev_hard_xmit(struct sk_buff *skb, struct net_device *ndev) 585static netdev_tx_t sirdev_hard_xmit(struct sk_buff *skb,
586 struct net_device *ndev)
586{ 587{
587 struct sir_dev *dev = netdev_priv(ndev); 588 struct sir_dev *dev = netdev_priv(ndev);
588 unsigned long flags; 589 unsigned long flags;
diff --git a/drivers/net/irda/smsc-ircc2.c b/drivers/net/irda/smsc-ircc2.c
index 15f8a7f81600..1e8dd8c74a64 100644
--- a/drivers/net/irda/smsc-ircc2.c
+++ b/drivers/net/irda/smsc-ircc2.c
@@ -194,8 +194,10 @@ static int __exit smsc_ircc_close(struct smsc_ircc_cb *self);
194static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self); 194static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self);
195static void smsc_ircc_dma_receive_complete(struct smsc_ircc_cb *self); 195static void smsc_ircc_dma_receive_complete(struct smsc_ircc_cb *self);
196static void smsc_ircc_sir_receive(struct smsc_ircc_cb *self); 196static void smsc_ircc_sir_receive(struct smsc_ircc_cb *self);
197static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev); 197static netdev_tx_t smsc_ircc_hard_xmit_sir(struct sk_buff *skb,
198static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev); 198 struct net_device *dev);
199static netdev_tx_t smsc_ircc_hard_xmit_fir(struct sk_buff *skb,
200 struct net_device *dev);
199static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int bofs); 201static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int bofs);
200static void smsc_ircc_dma_xmit_complete(struct smsc_ircc_cb *self); 202static void smsc_ircc_dma_xmit_complete(struct smsc_ircc_cb *self);
201static void smsc_ircc_change_speed(struct smsc_ircc_cb *self, u32 speed); 203static void smsc_ircc_change_speed(struct smsc_ircc_cb *self, u32 speed);
@@ -486,7 +488,8 @@ static int __init smsc_ircc_init(void)
486 return ret; 488 return ret;
487} 489}
488 490
489static int smsc_ircc_net_xmit(struct sk_buff *skb, struct net_device *dev) 491static netdev_tx_t smsc_ircc_net_xmit(struct sk_buff *skb,
492 struct net_device *dev)
490{ 493{
491 struct smsc_ircc_cb *self = netdev_priv(dev); 494 struct smsc_ircc_cb *self = netdev_priv(dev);
492 495
@@ -878,7 +881,8 @@ static void smsc_ircc_timeout(struct net_device *dev)
878 * waits until the next transmit interrupt, and continues until the 881 * waits until the next transmit interrupt, and continues until the
879 * frame is transmitted. 882 * frame is transmitted.
880 */ 883 */
881static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) 884static netdev_tx_t smsc_ircc_hard_xmit_sir(struct sk_buff *skb,
885 struct net_device *dev)
882{ 886{
883 struct smsc_ircc_cb *self; 887 struct smsc_ircc_cb *self;
884 unsigned long flags; 888 unsigned long flags;
@@ -1183,7 +1187,8 @@ static void smsc_ircc_set_sir_speed(struct smsc_ircc_cb *self, __u32 speed)
1183 * Transmit the frame! 1187 * Transmit the frame!
1184 * 1188 *
1185 */ 1189 */
1186static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev) 1190static netdev_tx_t smsc_ircc_hard_xmit_fir(struct sk_buff *skb,
1191 struct net_device *dev)
1187{ 1192{
1188 struct smsc_ircc_cb *self; 1193 struct smsc_ircc_cb *self;
1189 unsigned long flags; 1194 unsigned long flags;
diff --git a/drivers/net/irda/stir4200.c b/drivers/net/irda/stir4200.c
index c475b23091bc..528767dec9d7 100644
--- a/drivers/net/irda/stir4200.c
+++ b/drivers/net/irda/stir4200.c
@@ -560,7 +560,8 @@ static int change_speed(struct stir_cb *stir, unsigned speed)
560/* 560/*
561 * Called from net/core when new frame is available. 561 * Called from net/core when new frame is available.
562 */ 562 */
563static int stir_hard_xmit(struct sk_buff *skb, struct net_device *netdev) 563static netdev_tx_t stir_hard_xmit(struct sk_buff *skb,
564 struct net_device *netdev)
564{ 565{
565 struct stir_cb *stir = netdev_priv(netdev); 566 struct stir_cb *stir = netdev_priv(netdev);
566 567
diff --git a/drivers/net/irda/via-ircc.c b/drivers/net/irda/via-ircc.c
index 36a60748447b..a5ca71cec028 100644
--- a/drivers/net/irda/via-ircc.c
+++ b/drivers/net/irda/via-ircc.c
@@ -87,10 +87,10 @@ static int via_ircc_close(struct via_ircc_cb *self);
87static int via_ircc_dma_receive(struct via_ircc_cb *self); 87static int via_ircc_dma_receive(struct via_ircc_cb *self);
88static int via_ircc_dma_receive_complete(struct via_ircc_cb *self, 88static int via_ircc_dma_receive_complete(struct via_ircc_cb *self,
89 int iobase); 89 int iobase);
90static int via_ircc_hard_xmit_sir(struct sk_buff *skb, 90static netdev_tx_t via_ircc_hard_xmit_sir(struct sk_buff *skb,
91 struct net_device *dev); 91 struct net_device *dev);
92static int via_ircc_hard_xmit_fir(struct sk_buff *skb, 92static netdev_tx_t via_ircc_hard_xmit_fir(struct sk_buff *skb,
93 struct net_device *dev); 93 struct net_device *dev);
94static void via_hw_init(struct via_ircc_cb *self); 94static void via_hw_init(struct via_ircc_cb *self);
95static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud); 95static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud);
96static irqreturn_t via_ircc_interrupt(int irq, void *dev_id); 96static irqreturn_t via_ircc_interrupt(int irq, void *dev_id);
@@ -823,8 +823,8 @@ static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 speed)
823 * Transmit the frame! 823 * Transmit the frame!
824 * 824 *
825 */ 825 */
826static int via_ircc_hard_xmit_sir(struct sk_buff *skb, 826static netdev_tx_t via_ircc_hard_xmit_sir(struct sk_buff *skb,
827 struct net_device *dev) 827 struct net_device *dev)
828{ 828{
829 struct via_ircc_cb *self; 829 struct via_ircc_cb *self;
830 unsigned long flags; 830 unsigned long flags;
@@ -895,8 +895,8 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb,
895 return NETDEV_TX_OK; 895 return NETDEV_TX_OK;
896} 896}
897 897
898static int via_ircc_hard_xmit_fir(struct sk_buff *skb, 898static netdev_tx_t via_ircc_hard_xmit_fir(struct sk_buff *skb,
899 struct net_device *dev) 899 struct net_device *dev)
900{ 900{
901 struct via_ircc_cb *self; 901 struct via_ircc_cb *self;
902 u16 iobase; 902 u16 iobase;
diff --git a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c
index 08e26f1297b4..7cfb8b6593c6 100644
--- a/drivers/net/irda/vlsi_ir.c
+++ b/drivers/net/irda/vlsi_ir.c
@@ -854,7 +854,8 @@ static int vlsi_set_baud(vlsi_irda_dev_t *idev, unsigned iobase)
854 return ret; 854 return ret;
855} 855}
856 856
857static int vlsi_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) 857static netdev_tx_t vlsi_hard_start_xmit(struct sk_buff *skb,
858 struct net_device *ndev)
858{ 859{
859 vlsi_irda_dev_t *idev = netdev_priv(ndev); 860 vlsi_irda_dev_t *idev = netdev_priv(ndev);
860 struct vlsi_ring *r = idev->tx_ring; 861 struct vlsi_ring *r = idev->tx_ring;
diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c
index 462bc437080f..551810fd2976 100644
--- a/drivers/net/irda/w83977af_ir.c
+++ b/drivers/net/irda/w83977af_ir.c
@@ -93,7 +93,8 @@ static int w83977af_close(struct w83977af_ir *self);
93static int w83977af_probe(int iobase, int irq, int dma); 93static int w83977af_probe(int iobase, int irq, int dma);
94static int w83977af_dma_receive(struct w83977af_ir *self); 94static int w83977af_dma_receive(struct w83977af_ir *self);
95static int w83977af_dma_receive_complete(struct w83977af_ir *self); 95static int w83977af_dma_receive_complete(struct w83977af_ir *self);
96static int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev); 96static netdev_tx_t w83977af_hard_xmit(struct sk_buff *skb,
97 struct net_device *dev);
97static int w83977af_pio_write(int iobase, __u8 *buf, int len, int fifo_size); 98static int w83977af_pio_write(int iobase, __u8 *buf, int len, int fifo_size);
98static void w83977af_dma_write(struct w83977af_ir *self, int iobase); 99static void w83977af_dma_write(struct w83977af_ir *self, int iobase);
99static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed); 100static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed);
@@ -490,7 +491,8 @@ static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed)
490 * Sets up a DMA transfer to send the current frame. 491 * Sets up a DMA transfer to send the current frame.
491 * 492 *
492 */ 493 */
493static int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev) 494static netdev_tx_t w83977af_hard_xmit(struct sk_buff *skb,
495 struct net_device *dev)
494{ 496{
495 struct w83977af_ir *self; 497 struct w83977af_ir *self;
496 __s32 speed; 498 __s32 speed;
diff --git a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c
index 64230cffcfee..7b6b631f647f 100644
--- a/net/irda/irlan/irlan_eth.c
+++ b/net/irda/irlan/irlan_eth.c
@@ -41,7 +41,8 @@
41 41
42static int irlan_eth_open(struct net_device *dev); 42static int irlan_eth_open(struct net_device *dev);
43static int irlan_eth_close(struct net_device *dev); 43static int irlan_eth_close(struct net_device *dev);
44static int irlan_eth_xmit(struct sk_buff *skb, struct net_device *dev); 44static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
45 struct net_device *dev);
45static void irlan_eth_set_multicast_list( struct net_device *dev); 46static void irlan_eth_set_multicast_list( struct net_device *dev);
46static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev); 47static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev);
47 48
@@ -162,7 +163,8 @@ static int irlan_eth_close(struct net_device *dev)
162 * Transmits ethernet frames over IrDA link. 163 * Transmits ethernet frames over IrDA link.
163 * 164 *
164 */ 165 */
165static int irlan_eth_xmit(struct sk_buff *skb, struct net_device *dev) 166static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
167 struct net_device *dev)
166{ 168{
167 struct irlan_cb *self = netdev_priv(dev); 169 struct irlan_cb *self = netdev_priv(dev);
168 int ret; 170 int ret;