aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/irda-usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/irda/irda-usb.c')
-rw-r--r--drivers/net/irda/irda-usb.c95
1 files changed, 44 insertions, 51 deletions
diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c
index e9aedbe3fc92..48b2f9a321b7 100644
--- a/drivers/net/irda/irda-usb.c
+++ b/drivers/net/irda/irda-usb.c
@@ -176,12 +176,13 @@ static void irda_usb_build_header(struct irda_usb_cb *self,
176 (!force) && (self->speed != -1)) { 176 (!force) && (self->speed != -1)) {
177 /* No speed and xbofs change here 177 /* No speed and xbofs change here
178 * (we'll do it later in the write callback) */ 178 * (we'll do it later in the write callback) */
179 IRDA_DEBUG(2, "%s(), not changing speed yet\n", __func__); 179 pr_debug("%s(), not changing speed yet\n", __func__);
180 *header = 0; 180 *header = 0;
181 return; 181 return;
182 } 182 }
183 183
184 IRDA_DEBUG(2, "%s(), changing speed to %d\n", __func__, self->new_speed); 184 pr_debug("%s(), changing speed to %d\n",
185 __func__, self->new_speed);
185 self->speed = self->new_speed; 186 self->speed = self->new_speed;
186 /* We will do ` self->new_speed = -1; ' in the completion 187 /* We will do ` self->new_speed = -1; ' in the completion
187 * handler just in case the current URB fail - Jean II */ 188 * handler just in case the current URB fail - Jean II */
@@ -227,7 +228,8 @@ static void irda_usb_build_header(struct irda_usb_cb *self,
227 228
228 /* Set the negotiated additional XBOFS */ 229 /* Set the negotiated additional XBOFS */
229 if (self->new_xbofs != -1) { 230 if (self->new_xbofs != -1) {
230 IRDA_DEBUG(2, "%s(), changing xbofs to %d\n", __func__, self->new_xbofs); 231 pr_debug("%s(), changing xbofs to %d\n",
232 __func__, self->new_xbofs);
231 self->xbofs = self->new_xbofs; 233 self->xbofs = self->new_xbofs;
232 /* We will do ` self->new_xbofs = -1; ' in the completion 234 /* We will do ` self->new_xbofs = -1; ' in the completion
233 * handler just in case the current URB fail - Jean II */ 235 * handler just in case the current URB fail - Jean II */
@@ -301,8 +303,8 @@ static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self)
301 struct urb *urb; 303 struct urb *urb;
302 int ret; 304 int ret;
303 305
304 IRDA_DEBUG(2, "%s(), speed=%d, xbofs=%d\n", __func__, 306 pr_debug("%s(), speed=%d, xbofs=%d\n", __func__,
305 self->new_speed, self->new_xbofs); 307 self->new_speed, self->new_xbofs);
306 308
307 /* Grab the speed URB */ 309 /* Grab the speed URB */
308 urb = self->speed_urb; 310 urb = self->speed_urb;
@@ -346,8 +348,6 @@ static void speed_bulk_callback(struct urb *urb)
346{ 348{
347 struct irda_usb_cb *self = urb->context; 349 struct irda_usb_cb *self = urb->context;
348 350
349 IRDA_DEBUG(2, "%s()\n", __func__);
350
351 /* We should always have a context */ 351 /* We should always have a context */
352 IRDA_ASSERT(self != NULL, return;); 352 IRDA_ASSERT(self != NULL, return;);
353 /* We should always be called for the speed URB */ 353 /* We should always be called for the speed URB */
@@ -356,7 +356,8 @@ static void speed_bulk_callback(struct urb *urb)
356 /* Check for timeout and other USB nasties */ 356 /* Check for timeout and other USB nasties */
357 if (urb->status != 0) { 357 if (urb->status != 0) {
358 /* I get a lot of -ECONNABORTED = -103 here - Jean II */ 358 /* I get a lot of -ECONNABORTED = -103 here - Jean II */
359 IRDA_DEBUG(0, "%s(), URB complete status %d, transfer_flags 0x%04X\n", __func__, urb->status, urb->transfer_flags); 359 pr_debug("%s(), URB complete status %d, transfer_flags 0x%04X\n",
360 __func__, urb->status, urb->transfer_flags);
360 361
361 /* Don't do anything here, that might confuse the USB layer. 362 /* Don't do anything here, that might confuse the USB layer.
362 * Instead, we will wait for irda_usb_net_timeout(), the 363 * Instead, we will wait for irda_usb_net_timeout(), the
@@ -391,7 +392,7 @@ static netdev_tx_t irda_usb_hard_xmit(struct sk_buff *skb,
391 s16 xbofs; 392 s16 xbofs;
392 int res, mtt; 393 int res, mtt;
393 394
394 IRDA_DEBUG(4, "%s() on %s\n", __func__, netdev->name); 395 pr_debug("%s() on %s\n", __func__, netdev->name);
395 396
396 netif_stop_queue(netdev); 397 netif_stop_queue(netdev);
397 398
@@ -402,7 +403,7 @@ static netdev_tx_t irda_usb_hard_xmit(struct sk_buff *skb,
402 * We need to check self->present under the spinlock because 403 * We need to check self->present under the spinlock because
403 * of irda_usb_disconnect() is synchronous - Jean II */ 404 * of irda_usb_disconnect() is synchronous - Jean II */
404 if (!self->present) { 405 if (!self->present) {
405 IRDA_DEBUG(0, "%s(), Device is gone...\n", __func__); 406 pr_debug("%s(), Device is gone...\n", __func__);
406 goto drop; 407 goto drop;
407 } 408 }
408 409
@@ -554,8 +555,6 @@ static void write_bulk_callback(struct urb *urb)
554 struct sk_buff *skb = urb->context; 555 struct sk_buff *skb = urb->context;
555 struct irda_usb_cb *self = ((struct irda_skb_cb *) skb->cb)->context; 556 struct irda_usb_cb *self = ((struct irda_skb_cb *) skb->cb)->context;
556 557
557 IRDA_DEBUG(2, "%s()\n", __func__);
558
559 /* We should always have a context */ 558 /* We should always have a context */
560 IRDA_ASSERT(self != NULL, return;); 559 IRDA_ASSERT(self != NULL, return;);
561 /* We should always be called for the speed URB */ 560 /* We should always be called for the speed URB */
@@ -568,7 +567,8 @@ static void write_bulk_callback(struct urb *urb)
568 /* Check for timeout and other USB nasties */ 567 /* Check for timeout and other USB nasties */
569 if (urb->status != 0) { 568 if (urb->status != 0) {
570 /* I get a lot of -ECONNABORTED = -103 here - Jean II */ 569 /* I get a lot of -ECONNABORTED = -103 here - Jean II */
571 IRDA_DEBUG(0, "%s(), URB complete status %d, transfer_flags 0x%04X\n", __func__, urb->status, urb->transfer_flags); 570 pr_debug("%s(), URB complete status %d, transfer_flags 0x%04X\n",
571 __func__, urb->status, urb->transfer_flags);
572 572
573 /* Don't do anything here, that might confuse the USB layer, 573 /* Don't do anything here, that might confuse the USB layer,
574 * and we could go in recursion and blow the kernel stack... 574 * and we could go in recursion and blow the kernel stack...
@@ -587,7 +587,7 @@ static void write_bulk_callback(struct urb *urb)
587 587
588 /* If the network is closed, stop everything */ 588 /* If the network is closed, stop everything */
589 if ((!self->netopen) || (!self->present)) { 589 if ((!self->netopen) || (!self->present)) {
590 IRDA_DEBUG(0, "%s(), Network is gone...\n", __func__); 590 pr_debug("%s(), Network is gone...\n", __func__);
591 spin_unlock_irqrestore(&self->lock, flags); 591 spin_unlock_irqrestore(&self->lock, flags);
592 return; 592 return;
593 } 593 }
@@ -598,7 +598,7 @@ static void write_bulk_callback(struct urb *urb)
598 (self->new_xbofs != self->xbofs)) { 598 (self->new_xbofs != self->xbofs)) {
599 /* We haven't changed speed yet (because of 599 /* We haven't changed speed yet (because of
600 * IUC_SPEED_BUG), so do it now - Jean II */ 600 * IUC_SPEED_BUG), so do it now - Jean II */
601 IRDA_DEBUG(1, "%s(), Changing speed now...\n", __func__); 601 pr_debug("%s(), Changing speed now...\n", __func__);
602 irda_usb_change_speed_xbofs(self); 602 irda_usb_change_speed_xbofs(self);
603 } else { 603 } else {
604 /* New speed and xbof is now committed in hardware */ 604 /* New speed and xbof is now committed in hardware */
@@ -630,7 +630,7 @@ static void irda_usb_net_timeout(struct net_device *netdev)
630 struct urb *urb; 630 struct urb *urb;
631 int done = 0; /* If we have made any progress */ 631 int done = 0; /* If we have made any progress */
632 632
633 IRDA_DEBUG(0, "%s(), Network layer thinks we timed out!\n", __func__); 633 pr_debug("%s(), Network layer thinks we timed out!\n", __func__);
634 IRDA_ASSERT(self != NULL, return;); 634 IRDA_ASSERT(self != NULL, return;);
635 635
636 /* Protect us from USB callbacks, net Tx and else. */ 636 /* Protect us from USB callbacks, net Tx and else. */
@@ -647,7 +647,8 @@ static void irda_usb_net_timeout(struct net_device *netdev)
647 /* Check speed URB */ 647 /* Check speed URB */
648 urb = self->speed_urb; 648 urb = self->speed_urb;
649 if (urb->status != 0) { 649 if (urb->status != 0) {
650 IRDA_DEBUG(0, "%s: Speed change timed out, urb->status=%d, urb->transfer_flags=0x%04X\n", netdev->name, urb->status, urb->transfer_flags); 650 pr_debug("%s: Speed change timed out, urb->status=%d, urb->transfer_flags=0x%04X\n",
651 netdev->name, urb->status, urb->transfer_flags);
651 652
652 switch (urb->status) { 653 switch (urb->status) {
653 case -EINPROGRESS: 654 case -EINPROGRESS:
@@ -672,7 +673,8 @@ static void irda_usb_net_timeout(struct net_device *netdev)
672 if (urb->status != 0) { 673 if (urb->status != 0) {
673 struct sk_buff *skb = urb->context; 674 struct sk_buff *skb = urb->context;
674 675
675 IRDA_DEBUG(0, "%s: Tx timed out, urb->status=%d, urb->transfer_flags=0x%04X\n", netdev->name, urb->status, urb->transfer_flags); 676 pr_debug("%s: Tx timed out, urb->status=%d, urb->transfer_flags=0x%04X\n",
677 netdev->name, urb->status, urb->transfer_flags);
676 678
677 /* Increase error count */ 679 /* Increase error count */
678 netdev->stats.tx_errors++; 680 netdev->stats.tx_errors++;
@@ -761,8 +763,6 @@ static void irda_usb_submit(struct irda_usb_cb *self, struct sk_buff *skb, struc
761 struct irda_skb_cb *cb; 763 struct irda_skb_cb *cb;
762 int ret; 764 int ret;
763 765
764 IRDA_DEBUG(2, "%s()\n", __func__);
765
766 /* This should never happen */ 766 /* This should never happen */
767 IRDA_ASSERT(skb != NULL, return;); 767 IRDA_ASSERT(skb != NULL, return;);
768 IRDA_ASSERT(urb != NULL, return;); 768 IRDA_ASSERT(urb != NULL, return;);
@@ -805,7 +805,7 @@ static void irda_usb_receive(struct urb *urb)
805 struct urb *next_urb; 805 struct urb *next_urb;
806 unsigned int len, docopy; 806 unsigned int len, docopy;
807 807
808 IRDA_DEBUG(2, "%s(), len=%d\n", __func__, urb->actual_length); 808 pr_debug("%s(), len=%d\n", __func__, urb->actual_length);
809 809
810 /* Find ourselves */ 810 /* Find ourselves */
811 cb = (struct irda_skb_cb *) skb->cb; 811 cb = (struct irda_skb_cb *) skb->cb;
@@ -815,7 +815,7 @@ static void irda_usb_receive(struct urb *urb)
815 815
816 /* If the network is closed or the device gone, stop everything */ 816 /* If the network is closed or the device gone, stop everything */
817 if ((!self->netopen) || (!self->present)) { 817 if ((!self->netopen) || (!self->present)) {
818 IRDA_DEBUG(0, "%s(), Network is gone!\n", __func__); 818 pr_debug("%s(), Network is gone!\n", __func__);
819 /* Don't re-submit the URB : will stall the Rx path */ 819 /* Don't re-submit the URB : will stall the Rx path */
820 return; 820 return;
821 } 821 }
@@ -838,7 +838,8 @@ static void irda_usb_receive(struct urb *urb)
838 /* Usually precursor to a hot-unplug on OHCI. */ 838 /* Usually precursor to a hot-unplug on OHCI. */
839 default: 839 default:
840 self->netdev->stats.rx_errors++; 840 self->netdev->stats.rx_errors++;
841 IRDA_DEBUG(0, "%s(), RX status %d, transfer_flags 0x%04X\n", __func__, urb->status, urb->transfer_flags); 841 pr_debug("%s(), RX status %d, transfer_flags 0x%04X\n",
842 __func__, urb->status, urb->transfer_flags);
842 break; 843 break;
843 } 844 }
844 /* If we received an error, we don't want to resubmit the 845 /* If we received an error, we don't want to resubmit the
@@ -964,8 +965,6 @@ static void irda_usb_rx_defer_expired(unsigned long data)
964 struct irda_skb_cb *cb; 965 struct irda_skb_cb *cb;
965 struct urb *next_urb; 966 struct urb *next_urb;
966 967
967 IRDA_DEBUG(2, "%s()\n", __func__);
968
969 /* Find ourselves */ 968 /* Find ourselves */
970 cb = (struct irda_skb_cb *) skb->cb; 969 cb = (struct irda_skb_cb *) skb->cb;
971 IRDA_ASSERT(cb != NULL, return;); 970 IRDA_ASSERT(cb != NULL, return;);
@@ -1049,8 +1048,8 @@ static int stir421x_fw_upload(struct irda_usb_cb *self,
1049 self->bulk_out_ep), 1048 self->bulk_out_ep),
1050 patch_block, block_size, 1049 patch_block, block_size,
1051 &actual_len, msecs_to_jiffies(500)); 1050 &actual_len, msecs_to_jiffies(500));
1052 IRDA_DEBUG(3,"%s(): Bulk send %u bytes, ret=%d\n", 1051 pr_debug("%s(): Bulk send %u bytes, ret=%d\n",
1053 __func__, actual_len, ret); 1052 __func__, actual_len, ret);
1054 1053
1055 if (ret < 0) 1054 if (ret < 0)
1056 break; 1055 break;
@@ -1112,8 +1111,8 @@ static int stir421x_patch_device(struct irda_usb_cb *self)
1112 + ((build / 10) << 4) 1111 + ((build / 10) << 4)
1113 + (build % 10); 1112 + (build % 10);
1114 1113
1115 IRDA_DEBUG(3, "%s(): Firmware Product version %ld\n", 1114 pr_debug("%s(): Firmware Product version %ld\n",
1116 __func__, fw_version); 1115 __func__, fw_version);
1117 } 1116 }
1118 } 1117 }
1119 1118
@@ -1169,8 +1168,6 @@ static int irda_usb_net_open(struct net_device *netdev)
1169 char hwname[16]; 1168 char hwname[16];
1170 int i; 1169 int i;
1171 1170
1172 IRDA_DEBUG(1, "%s()\n", __func__);
1173
1174 IRDA_ASSERT(netdev != NULL, return -1;); 1171 IRDA_ASSERT(netdev != NULL, return -1;);
1175 self = netdev_priv(netdev); 1172 self = netdev_priv(netdev);
1176 IRDA_ASSERT(self != NULL, return -1;); 1173 IRDA_ASSERT(self != NULL, return -1;);
@@ -1249,8 +1246,6 @@ static int irda_usb_net_close(struct net_device *netdev)
1249 struct irda_usb_cb *self; 1246 struct irda_usb_cb *self;
1250 int i; 1247 int i;
1251 1248
1252 IRDA_DEBUG(1, "%s()\n", __func__);
1253
1254 IRDA_ASSERT(netdev != NULL, return -1;); 1249 IRDA_ASSERT(netdev != NULL, return -1;);
1255 self = netdev_priv(netdev); 1250 self = netdev_priv(netdev);
1256 IRDA_ASSERT(self != NULL, return -1;); 1251 IRDA_ASSERT(self != NULL, return -1;);
@@ -1304,7 +1299,7 @@ static int irda_usb_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
1304 self = netdev_priv(dev); 1299 self = netdev_priv(dev);
1305 IRDA_ASSERT(self != NULL, return -1;); 1300 IRDA_ASSERT(self != NULL, return -1;);
1306 1301
1307 IRDA_DEBUG(2, "%s(), %s, (cmd=0x%X)\n", __func__, dev->name, cmd); 1302 pr_debug("%s(), %s, (cmd=0x%X)\n", __func__, dev->name, cmd);
1308 1303
1309 switch (cmd) { 1304 switch (cmd) {
1310 case SIOCSBANDWIDTH: /* Set bandwidth */ 1305 case SIOCSBANDWIDTH: /* Set bandwidth */
@@ -1354,7 +1349,6 @@ static inline void irda_usb_init_qos(struct irda_usb_cb *self)
1354{ 1349{
1355 struct irda_class_desc *desc; 1350 struct irda_class_desc *desc;
1356 1351
1357 IRDA_DEBUG(3, "%s()\n", __func__);
1358 1352
1359 desc = self->irda_desc; 1353 desc = self->irda_desc;
1360 1354
@@ -1370,8 +1364,10 @@ static inline void irda_usb_init_qos(struct irda_usb_cb *self)
1370 self->qos.window_size.bits = desc->bmWindowSize; 1364 self->qos.window_size.bits = desc->bmWindowSize;
1371 self->qos.data_size.bits = desc->bmDataSize; 1365 self->qos.data_size.bits = desc->bmDataSize;
1372 1366
1373 IRDA_DEBUG(0, "%s(), dongle says speed=0x%X, size=0x%X, window=0x%X, bofs=0x%X, turn=0x%X\n", 1367 pr_debug("%s(), dongle says speed=0x%X, size=0x%X, window=0x%X, bofs=0x%X, turn=0x%X\n",
1374 __func__, self->qos.baud_rate.bits, self->qos.data_size.bits, self->qos.window_size.bits, self->qos.additional_bofs.bits, self->qos.min_turn_time.bits); 1368 __func__, self->qos.baud_rate.bits, self->qos.data_size.bits,
1369 self->qos.window_size.bits, self->qos.additional_bofs.bits,
1370 self->qos.min_turn_time.bits);
1375 1371
1376 /* Don't always trust what the dongle tell us */ 1372 /* Don't always trust what the dongle tell us */
1377 if(self->capability & IUC_SIR_ONLY) 1373 if(self->capability & IUC_SIR_ONLY)
@@ -1414,8 +1410,6 @@ static inline int irda_usb_open(struct irda_usb_cb *self)
1414{ 1410{
1415 struct net_device *netdev = self->netdev; 1411 struct net_device *netdev = self->netdev;
1416 1412
1417 IRDA_DEBUG(1, "%s()\n", __func__);
1418
1419 netdev->netdev_ops = &irda_usb_netdev_ops; 1413 netdev->netdev_ops = &irda_usb_netdev_ops;
1420 1414
1421 irda_usb_init_qos(self); 1415 irda_usb_init_qos(self);
@@ -1430,8 +1424,6 @@ static inline int irda_usb_open(struct irda_usb_cb *self)
1430 */ 1424 */
1431static inline void irda_usb_close(struct irda_usb_cb *self) 1425static inline void irda_usb_close(struct irda_usb_cb *self)
1432{ 1426{
1433 IRDA_DEBUG(1, "%s()\n", __func__);
1434
1435 /* Remove netdevice */ 1427 /* Remove netdevice */
1436 unregister_netdev(self->netdev); 1428 unregister_netdev(self->netdev);
1437 1429
@@ -1509,8 +1501,9 @@ static inline int irda_usb_parse_endpoints(struct irda_usb_cb *self, struct usb_
1509 } 1501 }
1510 } 1502 }
1511 1503
1512 IRDA_DEBUG(0, "%s(), And our endpoints are : in=%02X, out=%02X (%d), int=%02X\n", 1504 pr_debug("%s(), And our endpoints are : in=%02X, out=%02X (%d), int=%02X\n",
1513 __func__, self->bulk_in_ep, self->bulk_out_ep, self->bulk_out_mtu, self->bulk_int_ep); 1505 __func__, self->bulk_in_ep, self->bulk_out_ep,
1506 self->bulk_out_mtu, self->bulk_int_ep);
1514 1507
1515 return (self->bulk_in_ep != 0) && (self->bulk_out_ep != 0); 1508 return (self->bulk_in_ep != 0) && (self->bulk_out_ep != 0);
1516} 1509}
@@ -1572,7 +1565,7 @@ static inline struct irda_class_desc *irda_usb_find_class_desc(struct usb_interf
1572 0, intf->altsetting->desc.bInterfaceNumber, desc, 1565 0, intf->altsetting->desc.bInterfaceNumber, desc,
1573 sizeof(*desc), 500); 1566 sizeof(*desc), 500);
1574 1567
1575 IRDA_DEBUG(1, "%s(), ret=%d\n", __func__, ret); 1568 pr_debug("%s(), ret=%d\n", __func__, ret);
1576 if (ret < sizeof(*desc)) { 1569 if (ret < sizeof(*desc)) {
1577 net_warn_ratelimited("usb-irda: class_descriptor read %s (%d)\n", 1570 net_warn_ratelimited("usb-irda: class_descriptor read %s (%d)\n",
1578 ret < 0 ? "failed" : "too short", ret); 1571 ret < 0 ? "failed" : "too short", ret);
@@ -1679,7 +1672,8 @@ static int irda_usb_probe(struct usb_interface *intf,
1679 * specify an alternate, but very few driver do like this. 1672 * specify an alternate, but very few driver do like this.
1680 * Jean II */ 1673 * Jean II */
1681 ret = usb_set_interface(dev, intf->altsetting->desc.bInterfaceNumber, 0); 1674 ret = usb_set_interface(dev, intf->altsetting->desc.bInterfaceNumber, 0);
1682 IRDA_DEBUG(1, "usb-irda: set interface %d result %d\n", intf->altsetting->desc.bInterfaceNumber, ret); 1675 pr_debug("usb-irda: set interface %d result %d\n",
1676 intf->altsetting->desc.bInterfaceNumber, ret);
1683 switch (ret) { 1677 switch (ret) {
1684 case 0: 1678 case 0:
1685 break; 1679 break;
@@ -1687,10 +1681,11 @@ static int irda_usb_probe(struct usb_interface *intf,
1687 /* Martin Diehl says if we get a -EPIPE we should 1681 /* Martin Diehl says if we get a -EPIPE we should
1688 * be fine and we don't need to do a usb_clear_halt(). 1682 * be fine and we don't need to do a usb_clear_halt().
1689 * - Jean II */ 1683 * - Jean II */
1690 IRDA_DEBUG(0, "%s(), Received -EPIPE, ignoring...\n", __func__); 1684 pr_debug("%s(), Received -EPIPE, ignoring...\n",
1685 __func__);
1691 break; 1686 break;
1692 default: 1687 default:
1693 IRDA_DEBUG(0, "%s(), Unknown error %d\n", __func__, ret); 1688 pr_debug("%s(), Unknown error %d\n", __func__, ret);
1694 ret = -EIO; 1689 ret = -EIO;
1695 goto err_out_3; 1690 goto err_out_3;
1696 } 1691 }
@@ -1716,7 +1711,7 @@ static int irda_usb_probe(struct usb_interface *intf,
1716 ret = usb_control_msg (self->usbdev, usb_sndctrlpipe (self->usbdev, 0), 1711 ret = usb_control_msg (self->usbdev, usb_sndctrlpipe (self->usbdev, 0),
1717 0x02, 0x40, 0, 0, NULL, 0, 500); 1712 0x02, 0x40, 0, 0, NULL, 0, 500);
1718 if (ret < 0) { 1713 if (ret < 0) {
1719 IRDA_DEBUG (0, "usb_control_msg failed %d\n", ret); 1714 pr_debug("usb_control_msg failed %d\n", ret);
1720 goto err_out_3; 1715 goto err_out_3;
1721 } else { 1716 } else {
1722 mdelay(10); 1717 mdelay(10);
@@ -1808,8 +1803,6 @@ static void irda_usb_disconnect(struct usb_interface *intf)
1808 struct irda_usb_cb *self = usb_get_intfdata(intf); 1803 struct irda_usb_cb *self = usb_get_intfdata(intf);
1809 int i; 1804 int i;
1810 1805
1811 IRDA_DEBUG(1, "%s()\n", __func__);
1812
1813 usb_set_intfdata(intf, NULL); 1806 usb_set_intfdata(intf, NULL);
1814 if (!self) 1807 if (!self)
1815 return; 1808 return;
@@ -1858,7 +1851,7 @@ static void irda_usb_disconnect(struct usb_interface *intf)
1858 1851
1859 /* Free self and network device */ 1852 /* Free self and network device */
1860 free_netdev(self->netdev); 1853 free_netdev(self->netdev);
1861 IRDA_DEBUG(0, "%s(), USB IrDA Disconnected\n", __func__); 1854 pr_debug("%s(), USB IrDA Disconnected\n", __func__);
1862} 1855}
1863 1856
1864#ifdef CONFIG_PM 1857#ifdef CONFIG_PM