Commit 880c9c66 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5909f6ea
...@@ -540,7 +540,8 @@ static int kingsun_probe(struct usb_interface *intf, ...@@ -540,7 +540,8 @@ static int kingsun_probe(struct usb_interface *intf,
if (ret != 0) if (ret != 0)
goto free_mem; goto free_mem;
info("IrDA: Registered KingSun/DonShine device %s", net->name); dev_info(&net->dev, "IrDA: Registered KingSun/DonShine device %s\n",
net->name);
usb_set_intfdata(intf, kingsun); usb_set_intfdata(intf, kingsun);
......
...@@ -801,7 +801,8 @@ static int ks959_probe(struct usb_interface *intf, ...@@ -801,7 +801,8 @@ static int ks959_probe(struct usb_interface *intf,
if (ret != 0) if (ret != 0)
goto free_mem; goto free_mem;
info("IrDA: Registered KingSun KS-959 device %s", net->name); dev_info(&net->dev, "IrDA: Registered KingSun KS-959 device %s\n",
net->name);
usb_set_intfdata(intf, kingsun); usb_set_intfdata(intf, kingsun);
......
...@@ -705,7 +705,8 @@ static int ksdazzle_probe(struct usb_interface *intf, ...@@ -705,7 +705,8 @@ static int ksdazzle_probe(struct usb_interface *intf,
if (ret != 0) if (ret != 0)
goto free_mem; goto free_mem;
info("IrDA: Registered KingSun/Dazzle device %s", net->name); dev_info(&net->dev, "IrDA: Registered KingSun/Dazzle device %s\n",
net->name);
usb_set_intfdata(intf, kingsun); usb_set_intfdata(intf, kingsun);
......
...@@ -783,7 +783,8 @@ static int stir_transmit_thread(void *arg) ...@@ -783,7 +783,8 @@ static int stir_transmit_thread(void *arg)
if (unlikely(receive_start(stir))) { if (unlikely(receive_start(stir))) {
if (net_ratelimit()) if (net_ratelimit())
info("%s: receive usb submit failed", dev_info(&dev->dev,
"%s: receive usb submit failed\n",
stir->netdev->name); stir->netdev->name);
stir->receiving = 0; stir->receiving = 0;
msleep(10); msleep(10);
...@@ -1073,7 +1074,8 @@ static int stir_probe(struct usb_interface *intf, ...@@ -1073,7 +1074,8 @@ static int stir_probe(struct usb_interface *intf,
if (ret != 0) if (ret != 0)
goto err_out2; goto err_out2;
info("IrDA: Registered SigmaTel device %s", net->name); dev_info(&intf->dev, "IrDA: Registered SigmaTel device %s\n",
net->name);
usb_set_intfdata(intf, stir); usb_set_intfdata(intf, stir);
......
...@@ -954,7 +954,8 @@ static int __init catc_init(void) ...@@ -954,7 +954,8 @@ static int __init catc_init(void)
{ {
int result = usb_register(&catc_driver); int result = usb_register(&catc_driver);
if (result == 0) if (result == 0)
info(DRIVER_VERSION " " DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return result; return result;
} }
......
...@@ -1016,10 +1016,10 @@ static int kaweth_probe( ...@@ -1016,10 +1016,10 @@ static int kaweth_probe(
*/ */
if (le16_to_cpu(dev->descriptor.bcdDevice) >> 8) { if (le16_to_cpu(dev->descriptor.bcdDevice) >> 8) {
info("Firmware present in device."); dev_info(&intf->dev, "Firmware present in device.\n");
} else { } else {
/* Download the firmware */ /* Download the firmware */
info("Downloading firmware..."); dev_info(&intf->dev, "Downloading firmware...\n");
kaweth->firmware_buf = (__u8 *)__get_free_page(GFP_KERNEL); kaweth->firmware_buf = (__u8 *)__get_free_page(GFP_KERNEL);
if ((result = kaweth_download_firmware(kaweth, if ((result = kaweth_download_firmware(kaweth,
"kaweth/new_code.bin", "kaweth/new_code.bin",
...@@ -1061,7 +1061,7 @@ static int kaweth_probe( ...@@ -1061,7 +1061,7 @@ static int kaweth_probe(
} }
/* Device will now disappear for a moment... */ /* Device will now disappear for a moment... */
info("Firmware loaded. I'll be back..."); dev_info(&intf->dev, "Firmware loaded. I'll be back...\n");
err_fw: err_fw:
free_page((unsigned long)kaweth->firmware_buf); free_page((unsigned long)kaweth->firmware_buf);
free_netdev(netdev); free_netdev(netdev);
...@@ -1075,10 +1075,10 @@ static int kaweth_probe( ...@@ -1075,10 +1075,10 @@ static int kaweth_probe(
goto err_free_netdev; goto err_free_netdev;
} }
info("Statistics collection: %x", kaweth->configuration.statistics_mask); dev_info(&intf->dev, "Statistics collection: %x\n", kaweth->configuration.statistics_mask);
info("Multicast filter limit: %x", kaweth->configuration.max_multicast_filters & ((1 << 15) - 1)); dev_info(&intf->dev, "Multicast filter limit: %x\n", kaweth->configuration.max_multicast_filters & ((1 << 15) - 1));
info("MTU: %d", le16_to_cpu(kaweth->configuration.segment_size)); dev_info(&intf->dev, "MTU: %d\n", le16_to_cpu(kaweth->configuration.segment_size));
info("Read MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x", dev_info(&intf->dev, "Read MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x\n",
(int)kaweth->configuration.hw_addr[0], (int)kaweth->configuration.hw_addr[0],
(int)kaweth->configuration.hw_addr[1], (int)kaweth->configuration.hw_addr[1],
(int)kaweth->configuration.hw_addr[2], (int)kaweth->configuration.hw_addr[2],
...@@ -1174,7 +1174,8 @@ static int kaweth_probe( ...@@ -1174,7 +1174,8 @@ static int kaweth_probe(
goto err_intfdata; goto err_intfdata;
} }
info("kaweth interface created at %s", kaweth->net->name); dev_info(&intf->dev, "kaweth interface created at %s\n",
kaweth->net->name);
dbg("Kaweth probe returning."); dbg("Kaweth probe returning.");
...@@ -1205,7 +1206,7 @@ static void kaweth_disconnect(struct usb_interface *intf) ...@@ -1205,7 +1206,7 @@ static void kaweth_disconnect(struct usb_interface *intf)
struct kaweth_device *kaweth = usb_get_intfdata(intf); struct kaweth_device *kaweth = usb_get_intfdata(intf);
struct net_device *netdev; struct net_device *netdev;
info("Unregistering"); dev_info(&intf->dev, "Unregistering\n");
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
if (!kaweth) { if (!kaweth) {
......
...@@ -538,7 +538,8 @@ static void write_bulk_callback(struct urb *urb) ...@@ -538,7 +538,8 @@ static void write_bulk_callback(struct urb *urb)
if (!netif_device_present(dev->netdev)) if (!netif_device_present(dev->netdev))
return; return;
if (urb->status) if (urb->status)
info("%s: Tx status %d", dev->netdev->name, urb->status); dev_info(&urb->dev->dev, "%s: Tx status %d\n",
dev->netdev->name, urb->status);
dev->netdev->trans_start = jiffies; dev->netdev->trans_start = jiffies;
netif_wake_queue(dev->netdev); netif_wake_queue(dev->netdev);
} }
...@@ -561,7 +562,8 @@ static void intr_callback(struct urb *urb) ...@@ -561,7 +562,8 @@ static void intr_callback(struct urb *urb)
return; return;
/* -EPIPE: should clear the halt */ /* -EPIPE: should clear the halt */
default: default:
info("%s: intr status %d", dev->netdev->name, urb->status); dev_info(&urb->dev->dev, "%s: intr status %d\n",
dev->netdev->name, urb->status);
goto resubmit; goto resubmit;
} }
...@@ -710,12 +712,12 @@ static void rtl8150_set_multicast(struct net_device *netdev) ...@@ -710,12 +712,12 @@ static void rtl8150_set_multicast(struct net_device *netdev)
netif_stop_queue(netdev); netif_stop_queue(netdev);
if (netdev->flags & IFF_PROMISC) { if (netdev->flags & IFF_PROMISC) {
dev->rx_creg |= cpu_to_le16(0x0001); dev->rx_creg |= cpu_to_le16(0x0001);
info("%s: promiscuous mode", netdev->name); dev_info(&netdev->dev, "%s: promiscuous mode\n", netdev->name);
} else if (netdev->mc_count || } else if (netdev->mc_count ||
(netdev->flags & IFF_ALLMULTI)) { (netdev->flags & IFF_ALLMULTI)) {
dev->rx_creg &= cpu_to_le16(0xfffe); dev->rx_creg &= cpu_to_le16(0xfffe);
dev->rx_creg |= cpu_to_le16(0x0002); dev->rx_creg |= cpu_to_le16(0x0002);
info("%s: allmulti set", netdev->name); dev_info(&netdev->dev, "%s: allmulti set\n", netdev->name);
} else { } else {
/* ~RX_MULTICAST, ~RX_PROMISCUOUS */ /* ~RX_MULTICAST, ~RX_PROMISCUOUS */
dev->rx_creg &= cpu_to_le16(0x00fc); dev->rx_creg &= cpu_to_le16(0x00fc);
...@@ -947,7 +949,7 @@ static int rtl8150_probe(struct usb_interface *intf, ...@@ -947,7 +949,7 @@ static int rtl8150_probe(struct usb_interface *intf,
goto out2; goto out2;
} }
info("%s: rtl8150 is detected", netdev->name); dev_info(&intf->dev, "%s: rtl8150 is detected\n", netdev->name);
return 0; return 0;
...@@ -984,7 +986,8 @@ static void rtl8150_disconnect(struct usb_interface *intf) ...@@ -984,7 +986,8 @@ static void rtl8150_disconnect(struct usb_interface *intf)
static int __init usb_rtl8150_init(void) static int __init usb_rtl8150_init(void)
{ {
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return usb_register(&rtl8150_driver); return usb_register(&rtl8150_driver);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment