diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-31 15:50:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:13:38 -0400 |
commit | 6518bbb803fe02b15a3211c8db2afdff0ac4f808 (patch) | |
tree | 85b5df710063c22164150fb4fcf37098f188240a /drivers/net | |
parent | dbf02fae406daf4d583a279743869c686024c341 (diff) |
irda: convert to netdev_tx_t
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/irda/ali-ircc.c | 12 | ||||
-rw-r--r-- | drivers/net/irda/donauboe.c | 2 | ||||
-rw-r--r-- | drivers/net/irda/irda-usb.c | 6 | ||||
-rw-r--r-- | drivers/net/irda/kingsun-sir.c | 5 | ||||
-rw-r--r-- | drivers/net/irda/ks959-sir.c | 3 | ||||
-rw-r--r-- | drivers/net/irda/ksdazzle-sir.c | 3 | ||||
-rw-r--r-- | drivers/net/irda/mcs7780.c | 3 | ||||
-rw-r--r-- | drivers/net/irda/mcs7780.h | 3 | ||||
-rw-r--r-- | drivers/net/irda/nsc-ircc.c | 12 | ||||
-rw-r--r-- | drivers/net/irda/sir_dev.c | 3 | ||||
-rw-r--r-- | drivers/net/irda/smsc-ircc2.c | 15 | ||||
-rw-r--r-- | drivers/net/irda/stir4200.c | 3 | ||||
-rw-r--r-- | drivers/net/irda/via-ircc.c | 16 | ||||
-rw-r--r-- | drivers/net/irda/vlsi_ir.c | 3 | ||||
-rw-r--r-- | drivers/net/irda/w83977af_ir.c | 6 |
15 files changed, 60 insertions, 35 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 | |||
111 | static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud); | 111 | static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud); |
112 | 112 | ||
113 | /* SIR function */ | 113 | /* SIR function */ |
114 | static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev); | 114 | static netdev_tx_t ali_ircc_sir_hard_xmit(struct sk_buff *skb, |
115 | struct net_device *dev); | ||
115 | static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self); | 116 | static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self); |
116 | static void ali_ircc_sir_receive(struct ali_ircc_cb *self); | 117 | static void ali_ircc_sir_receive(struct ali_ircc_cb *self); |
117 | static void ali_ircc_sir_write_wakeup(struct ali_ircc_cb *self); | 118 | static 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); | |||
119 | static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, __u32 speed); | 120 | static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, __u32 speed); |
120 | 121 | ||
121 | /* FIR function */ | 122 | /* FIR function */ |
122 | static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev); | 123 | static netdev_tx_t ali_ircc_fir_hard_xmit(struct sk_buff *skb, |
124 | struct net_device *dev); | ||
123 | static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 speed); | 125 | static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 speed); |
124 | static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self); | 126 | static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self); |
125 | static int ali_ircc_dma_receive(struct ali_ircc_cb *self); | 127 | static 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 | */ |
1438 | static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev) | 1440 | static 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 | */ |
1960 | static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev) | 1963 | static 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 */ |
973 | static int | 973 | static netdev_tx_t |
974 | toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev) | 974 | toshoboe_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) ; | |||
111 | static struct irda_class_desc *irda_usb_find_class_desc(struct usb_interface *intf); | 111 | static struct irda_class_desc *irda_usb_find_class_desc(struct usb_interface *intf); |
112 | static void irda_usb_disconnect(struct usb_interface *intf); | 112 | static void irda_usb_disconnect(struct usb_interface *intf); |
113 | static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self); | 113 | static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self); |
114 | static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *dev); | 114 | static netdev_tx_t irda_usb_hard_xmit(struct sk_buff *skb, |
115 | struct net_device *dev); | ||
115 | static int irda_usb_open(struct irda_usb_cb *self); | 116 | static int irda_usb_open(struct irda_usb_cb *self); |
116 | static void irda_usb_close(struct irda_usb_cb *self); | 117 | static void irda_usb_close(struct irda_usb_cb *self); |
117 | static void speed_bulk_callback(struct urb *urb); | 118 | static 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 | */ |
384 | static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *netdev) | 385 | static 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 | */ |
153 | static int kingsun_hard_xmit(struct sk_buff *skb, struct net_device *netdev) | 153 | static 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 | ||
418 | static const struct net_device_ops kingsun_ops = { | 419 | static 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 | */ |
388 | static int ks959_hard_xmit(struct sk_buff *skb, struct net_device *netdev) | 388 | static 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 | */ |
301 | static int ksdazzle_hard_xmit(struct sk_buff *skb, struct net_device *netdev) | 301 | static 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. */ |
820 | static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *ndev) | 820 | static 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 | ||
157 | static void mcs_receive_irq(struct urb *urb); | 157 | static void mcs_receive_irq(struct urb *urb); |
158 | static void mcs_send_irq(struct urb *urb); | 158 | static void mcs_send_irq(struct urb *urb); |
159 | static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *netdev); | 159 | static netdev_tx_t mcs_hard_xmit(struct sk_buff *skb, |
160 | struct net_device *netdev); | ||
160 | 161 | ||
161 | static int mcs_probe(struct usb_interface *intf, | 162 | static 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); | |||
173 | static void nsc_ircc_pio_receive(struct nsc_ircc_cb *self); | 173 | static void nsc_ircc_pio_receive(struct nsc_ircc_cb *self); |
174 | static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self); | 174 | static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self); |
175 | static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase); | 175 | static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase); |
176 | static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev); | 176 | static netdev_tx_t nsc_ircc_hard_xmit_sir(struct sk_buff *skb, |
177 | static int nsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev); | 177 | struct net_device *dev); |
178 | static netdev_tx_t nsc_ircc_hard_xmit_fir(struct sk_buff *skb, | ||
179 | struct net_device *dev); | ||
178 | static int nsc_ircc_pio_write(int iobase, __u8 *buf, int len, int fifo_size); | 180 | static int nsc_ircc_pio_write(int iobase, __u8 *buf, int len, int fifo_size); |
179 | static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase); | 181 | static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase); |
180 | static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 baud); | 182 | static __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 | */ |
1358 | static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) | 1360 | static 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 | ||
1430 | static int nsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev) | 1433 | static 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 | ||
585 | static int sirdev_hard_xmit(struct sk_buff *skb, struct net_device *ndev) | 585 | static 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); | |||
194 | static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self); | 194 | static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self); |
195 | static void smsc_ircc_dma_receive_complete(struct smsc_ircc_cb *self); | 195 | static void smsc_ircc_dma_receive_complete(struct smsc_ircc_cb *self); |
196 | static void smsc_ircc_sir_receive(struct smsc_ircc_cb *self); | 196 | static void smsc_ircc_sir_receive(struct smsc_ircc_cb *self); |
197 | static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev); | 197 | static netdev_tx_t smsc_ircc_hard_xmit_sir(struct sk_buff *skb, |
198 | static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev); | 198 | struct net_device *dev); |
199 | static netdev_tx_t smsc_ircc_hard_xmit_fir(struct sk_buff *skb, | ||
200 | struct net_device *dev); | ||
199 | static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int bofs); | 201 | static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int bofs); |
200 | static void smsc_ircc_dma_xmit_complete(struct smsc_ircc_cb *self); | 202 | static void smsc_ircc_dma_xmit_complete(struct smsc_ircc_cb *self); |
201 | static void smsc_ircc_change_speed(struct smsc_ircc_cb *self, u32 speed); | 203 | static 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 | ||
489 | static int smsc_ircc_net_xmit(struct sk_buff *skb, struct net_device *dev) | 491 | static 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 | */ |
881 | static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) | 884 | static 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 | */ |
1186 | static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev) | 1190 | static 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 | */ |
563 | static int stir_hard_xmit(struct sk_buff *skb, struct net_device *netdev) | 563 | static 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); | |||
87 | static int via_ircc_dma_receive(struct via_ircc_cb *self); | 87 | static int via_ircc_dma_receive(struct via_ircc_cb *self); |
88 | static int via_ircc_dma_receive_complete(struct via_ircc_cb *self, | 88 | static int via_ircc_dma_receive_complete(struct via_ircc_cb *self, |
89 | int iobase); | 89 | int iobase); |
90 | static int via_ircc_hard_xmit_sir(struct sk_buff *skb, | 90 | static netdev_tx_t via_ircc_hard_xmit_sir(struct sk_buff *skb, |
91 | struct net_device *dev); | 91 | struct net_device *dev); |
92 | static int via_ircc_hard_xmit_fir(struct sk_buff *skb, | 92 | static netdev_tx_t via_ircc_hard_xmit_fir(struct sk_buff *skb, |
93 | struct net_device *dev); | 93 | struct net_device *dev); |
94 | static void via_hw_init(struct via_ircc_cb *self); | 94 | static void via_hw_init(struct via_ircc_cb *self); |
95 | static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud); | 95 | static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud); |
96 | static irqreturn_t via_ircc_interrupt(int irq, void *dev_id); | 96 | static 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 | */ |
826 | static int via_ircc_hard_xmit_sir(struct sk_buff *skb, | 826 | static 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 | ||
898 | static int via_ircc_hard_xmit_fir(struct sk_buff *skb, | 898 | static 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 | ||
857 | static int vlsi_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) | 857 | static 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); | |||
93 | static int w83977af_probe(int iobase, int irq, int dma); | 93 | static int w83977af_probe(int iobase, int irq, int dma); |
94 | static int w83977af_dma_receive(struct w83977af_ir *self); | 94 | static int w83977af_dma_receive(struct w83977af_ir *self); |
95 | static int w83977af_dma_receive_complete(struct w83977af_ir *self); | 95 | static int w83977af_dma_receive_complete(struct w83977af_ir *self); |
96 | static int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev); | 96 | static netdev_tx_t w83977af_hard_xmit(struct sk_buff *skb, |
97 | struct net_device *dev); | ||
97 | static int w83977af_pio_write(int iobase, __u8 *buf, int len, int fifo_size); | 98 | static int w83977af_pio_write(int iobase, __u8 *buf, int len, int fifo_size); |
98 | static void w83977af_dma_write(struct w83977af_ir *self, int iobase); | 99 | static void w83977af_dma_write(struct w83977af_ir *self, int iobase); |
99 | static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed); | 100 | static 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 | */ |
493 | static int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev) | 494 | static 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; |