aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/rtl8150.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-08-18 16:21:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-17 17:41:10 -0400
commit880c9c66a60c0aa4fb4dac2da9679da5f8f41903 (patch)
treeb5053854a7c97447b554f9cd3afbb32fbb7e478c /drivers/net/usb/rtl8150.c
parent5909f6ea2bc7f785ceb1bed14c670946a536ff2d (diff)
USB: remove info() macro from usb network drivers
USB should not be having it's own printk macros, so remove info() and use the system-wide standard of dev_info() wherever possible. Cc: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/usb/rtl8150.c')
-rw-r--r--drivers/net/usb/rtl8150.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c
index 7726b5e86764..6133401ebc67 100644
--- a/drivers/net/usb/rtl8150.c
+++ b/drivers/net/usb/rtl8150.c
@@ -538,7 +538,8 @@ static void write_bulk_callback(struct urb *urb)
538 if (!netif_device_present(dev->netdev)) 538 if (!netif_device_present(dev->netdev))
539 return; 539 return;
540 if (urb->status) 540 if (urb->status)
541 info("%s: Tx status %d", dev->netdev->name, urb->status); 541 dev_info(&urb->dev->dev, "%s: Tx status %d\n",
542 dev->netdev->name, urb->status);
542 dev->netdev->trans_start = jiffies; 543 dev->netdev->trans_start = jiffies;
543 netif_wake_queue(dev->netdev); 544 netif_wake_queue(dev->netdev);
544} 545}
@@ -561,7 +562,8 @@ static void intr_callback(struct urb *urb)
561 return; 562 return;
562 /* -EPIPE: should clear the halt */ 563 /* -EPIPE: should clear the halt */
563 default: 564 default:
564 info("%s: intr status %d", dev->netdev->name, urb->status); 565 dev_info(&urb->dev->dev, "%s: intr status %d\n",
566 dev->netdev->name, urb->status);
565 goto resubmit; 567 goto resubmit;
566 } 568 }
567 569
@@ -710,12 +712,12 @@ static void rtl8150_set_multicast(struct net_device *netdev)
710 netif_stop_queue(netdev); 712 netif_stop_queue(netdev);
711 if (netdev->flags & IFF_PROMISC) { 713 if (netdev->flags & IFF_PROMISC) {
712 dev->rx_creg |= cpu_to_le16(0x0001); 714 dev->rx_creg |= cpu_to_le16(0x0001);
713 info("%s: promiscuous mode", netdev->name); 715 dev_info(&netdev->dev, "%s: promiscuous mode\n", netdev->name);
714 } else if (netdev->mc_count || 716 } else if (netdev->mc_count ||
715 (netdev->flags & IFF_ALLMULTI)) { 717 (netdev->flags & IFF_ALLMULTI)) {
716 dev->rx_creg &= cpu_to_le16(0xfffe); 718 dev->rx_creg &= cpu_to_le16(0xfffe);
717 dev->rx_creg |= cpu_to_le16(0x0002); 719 dev->rx_creg |= cpu_to_le16(0x0002);
718 info("%s: allmulti set", netdev->name); 720 dev_info(&netdev->dev, "%s: allmulti set\n", netdev->name);
719 } else { 721 } else {
720 /* ~RX_MULTICAST, ~RX_PROMISCUOUS */ 722 /* ~RX_MULTICAST, ~RX_PROMISCUOUS */
721 dev->rx_creg &= cpu_to_le16(0x00fc); 723 dev->rx_creg &= cpu_to_le16(0x00fc);
@@ -947,7 +949,7 @@ static int rtl8150_probe(struct usb_interface *intf,
947 goto out2; 949 goto out2;
948 } 950 }
949 951
950 info("%s: rtl8150 is detected", netdev->name); 952 dev_info(&intf->dev, "%s: rtl8150 is detected\n", netdev->name);
951 953
952 return 0; 954 return 0;
953 955
@@ -984,7 +986,8 @@ static void rtl8150_disconnect(struct usb_interface *intf)
984 986
985static int __init usb_rtl8150_init(void) 987static int __init usb_rtl8150_init(void)
986{ 988{
987 info(DRIVER_DESC " " DRIVER_VERSION); 989 printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
990 DRIVER_DESC "\n");
988 return usb_register(&rtl8150_driver); 991 return usb_register(&rtl8150_driver);
989} 992}
990 993