diff options
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/kingsun-sir.c | 3 | ||||
-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/stir4200.c | 18 |
4 files changed, 16 insertions, 11 deletions
diff --git a/drivers/net/irda/kingsun-sir.c b/drivers/net/irda/kingsun-sir.c index 73fe83be34fe..e1429fc6d050 100644 --- a/drivers/net/irda/kingsun-sir.c +++ b/drivers/net/irda/kingsun-sir.c | |||
@@ -540,7 +540,8 @@ static int kingsun_probe(struct usb_interface *intf, | |||
540 | if (ret != 0) | 540 | if (ret != 0) |
541 | goto free_mem; | 541 | goto free_mem; |
542 | 542 | ||
543 | info("IrDA: Registered KingSun/DonShine device %s", net->name); | 543 | dev_info(&net->dev, "IrDA: Registered KingSun/DonShine device %s\n", |
544 | net->name); | ||
544 | 545 | ||
545 | usb_set_intfdata(intf, kingsun); | 546 | usb_set_intfdata(intf, kingsun); |
546 | 547 | ||
diff --git a/drivers/net/irda/ks959-sir.c b/drivers/net/irda/ks959-sir.c index 8c257a51341a..2482d61662a2 100644 --- a/drivers/net/irda/ks959-sir.c +++ b/drivers/net/irda/ks959-sir.c | |||
@@ -801,7 +801,8 @@ static int ks959_probe(struct usb_interface *intf, | |||
801 | if (ret != 0) | 801 | if (ret != 0) |
802 | goto free_mem; | 802 | goto free_mem; |
803 | 803 | ||
804 | info("IrDA: Registered KingSun KS-959 device %s", net->name); | 804 | dev_info(&net->dev, "IrDA: Registered KingSun KS-959 device %s\n", |
805 | net->name); | ||
805 | 806 | ||
806 | usb_set_intfdata(intf, kingsun); | 807 | usb_set_intfdata(intf, kingsun); |
807 | 808 | ||
diff --git a/drivers/net/irda/ksdazzle-sir.c b/drivers/net/irda/ksdazzle-sir.c index d01a28593ce2..1e0de93fd618 100644 --- a/drivers/net/irda/ksdazzle-sir.c +++ b/drivers/net/irda/ksdazzle-sir.c | |||
@@ -705,7 +705,8 @@ static int ksdazzle_probe(struct usb_interface *intf, | |||
705 | if (ret != 0) | 705 | if (ret != 0) |
706 | goto free_mem; | 706 | goto free_mem; |
707 | 707 | ||
708 | info("IrDA: Registered KingSun/Dazzle device %s", net->name); | 708 | dev_info(&net->dev, "IrDA: Registered KingSun/Dazzle device %s\n", |
709 | net->name); | ||
709 | 710 | ||
710 | usb_set_intfdata(intf, kingsun); | 711 | usb_set_intfdata(intf, kingsun); |
711 | 712 | ||
diff --git a/drivers/net/irda/stir4200.c b/drivers/net/irda/stir4200.c index 051963782749..3575804fd7c6 100644 --- a/drivers/net/irda/stir4200.c +++ b/drivers/net/irda/stir4200.c | |||
@@ -506,7 +506,7 @@ static int change_speed(struct stir_cb *stir, unsigned speed) | |||
506 | goto found; | 506 | goto found; |
507 | } | 507 | } |
508 | 508 | ||
509 | warn("%s: invalid speed %d", stir->netdev->name, speed); | 509 | dev_warn(&stir->netdev->dev, "invalid speed %d\n", speed); |
510 | return -EINVAL; | 510 | return -EINVAL; |
511 | 511 | ||
512 | found: | 512 | found: |
@@ -598,8 +598,8 @@ static int fifo_txwait(struct stir_cb *stir, int space) | |||
598 | err = read_reg(stir, REG_FIFOCTL, stir->fifo_status, | 598 | err = read_reg(stir, REG_FIFOCTL, stir->fifo_status, |
599 | FIFO_REGS_SIZE); | 599 | FIFO_REGS_SIZE); |
600 | if (unlikely(err != FIFO_REGS_SIZE)) { | 600 | if (unlikely(err != FIFO_REGS_SIZE)) { |
601 | warn("%s: FIFO register read error: %d", | 601 | dev_warn(&stir->netdev->dev, |
602 | stir->netdev->name, err); | 602 | "FIFO register read error: %d\n", err); |
603 | 603 | ||
604 | return err; | 604 | return err; |
605 | } | 605 | } |
@@ -783,8 +783,9 @@ static int stir_transmit_thread(void *arg) | |||
783 | 783 | ||
784 | if (unlikely(receive_start(stir))) { | 784 | if (unlikely(receive_start(stir))) { |
785 | if (net_ratelimit()) | 785 | if (net_ratelimit()) |
786 | info("%s: receive usb submit failed", | 786 | dev_info(&dev->dev, |
787 | stir->netdev->name); | 787 | "%s: receive usb submit failed\n", |
788 | stir->netdev->name); | ||
788 | stir->receiving = 0; | 789 | stir->receiving = 0; |
789 | msleep(10); | 790 | msleep(10); |
790 | continue; | 791 | continue; |
@@ -836,8 +837,8 @@ static void stir_rcv_irq(struct urb *urb) | |||
836 | 837 | ||
837 | /* in case of error, the kernel thread will restart us */ | 838 | /* in case of error, the kernel thread will restart us */ |
838 | if (err) { | 839 | if (err) { |
839 | warn("%s: usb receive submit error: %d", | 840 | dev_warn(&stir->netdev->dev, "usb receive submit error: %d\n", |
840 | stir->netdev->name, err); | 841 | err); |
841 | stir->receiving = 0; | 842 | stir->receiving = 0; |
842 | wake_up_process(stir->thread); | 843 | wake_up_process(stir->thread); |
843 | } | 844 | } |
@@ -1073,7 +1074,8 @@ static int stir_probe(struct usb_interface *intf, | |||
1073 | if (ret != 0) | 1074 | if (ret != 0) |
1074 | goto err_out2; | 1075 | goto err_out2; |
1075 | 1076 | ||
1076 | info("IrDA: Registered SigmaTel device %s", net->name); | 1077 | dev_info(&intf->dev, "IrDA: Registered SigmaTel device %s\n", |
1078 | net->name); | ||
1077 | 1079 | ||
1078 | usb_set_intfdata(intf, stir); | 1080 | usb_set_intfdata(intf, stir); |
1079 | 1081 | ||