Commit 936f0600 authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller

kaweth: remove obsolete debugging statements

SOme statements in the driver only served to inform
which functions were entered. Ftrace can do that just as good without
needing memory. Remove the statements.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 72e8d5fd
...@@ -265,8 +265,6 @@ static int kaweth_control(struct kaweth_device *kaweth, ...@@ -265,8 +265,6 @@ static int kaweth_control(struct kaweth_device *kaweth,
struct usb_ctrlrequest *dr; struct usb_ctrlrequest *dr;
int retval; int retval;
netdev_dbg(kaweth->net, "kaweth_control()\n");
if(in_interrupt()) { if(in_interrupt()) {
netdev_dbg(kaweth->net, "in_interrupt()\n"); netdev_dbg(kaweth->net, "in_interrupt()\n");
return -EBUSY; return -EBUSY;
...@@ -300,8 +298,6 @@ static int kaweth_read_configuration(struct kaweth_device *kaweth) ...@@ -300,8 +298,6 @@ static int kaweth_read_configuration(struct kaweth_device *kaweth)
{ {
int retval; int retval;
netdev_dbg(kaweth->net, "Reading kaweth configuration\n");
retval = kaweth_control(kaweth, retval = kaweth_control(kaweth,
usb_rcvctrlpipe(kaweth->dev, 0), usb_rcvctrlpipe(kaweth->dev, 0),
KAWETH_COMMAND_GET_ETHERNET_DESC, KAWETH_COMMAND_GET_ETHERNET_DESC,
...@@ -451,8 +447,6 @@ static int kaweth_trigger_firmware(struct kaweth_device *kaweth, ...@@ -451,8 +447,6 @@ static int kaweth_trigger_firmware(struct kaweth_device *kaweth,
kaweth->firmware_buf[6] = 0x00; kaweth->firmware_buf[6] = 0x00;
kaweth->firmware_buf[7] = 0x00; kaweth->firmware_buf[7] = 0x00;
netdev_dbg(kaweth->net, "Triggering firmware\n");
return kaweth_control(kaweth, return kaweth_control(kaweth,
usb_sndctrlpipe(kaweth->dev, 0), usb_sndctrlpipe(kaweth->dev, 0),
KAWETH_COMMAND_SCAN, KAWETH_COMMAND_SCAN,
...@@ -471,7 +465,6 @@ static int kaweth_reset(struct kaweth_device *kaweth) ...@@ -471,7 +465,6 @@ static int kaweth_reset(struct kaweth_device *kaweth)
{ {
int result; int result;
netdev_dbg(kaweth->net, "kaweth_reset(%p)\n", kaweth);
result = usb_reset_configuration(kaweth->dev); result = usb_reset_configuration(kaweth->dev);
mdelay(10); mdelay(10);
...@@ -685,8 +678,6 @@ static int kaweth_open(struct net_device *net) ...@@ -685,8 +678,6 @@ static int kaweth_open(struct net_device *net)
struct kaweth_device *kaweth = netdev_priv(net); struct kaweth_device *kaweth = netdev_priv(net);
int res; int res;
netdev_dbg(kaweth->net, "Opening network device.\n");
res = usb_autopm_get_interface(kaweth->intf); res = usb_autopm_get_interface(kaweth->intf);
if (res) { if (res) {
dev_err(&kaweth->intf->dev, "Interface cannot be resumed.\n"); dev_err(&kaweth->intf->dev, "Interface cannot be resumed.\n");
...@@ -951,7 +942,6 @@ static int kaweth_suspend(struct usb_interface *intf, pm_message_t message) ...@@ -951,7 +942,6 @@ static int kaweth_suspend(struct usb_interface *intf, pm_message_t message)
struct kaweth_device *kaweth = usb_get_intfdata(intf); struct kaweth_device *kaweth = usb_get_intfdata(intf);
unsigned long flags; unsigned long flags;
dev_dbg(&intf->dev, "Suspending device\n");
spin_lock_irqsave(&kaweth->device_lock, flags); spin_lock_irqsave(&kaweth->device_lock, flags);
kaweth->status |= KAWETH_STATUS_SUSPENDING; kaweth->status |= KAWETH_STATUS_SUSPENDING;
spin_unlock_irqrestore(&kaweth->device_lock, flags); spin_unlock_irqrestore(&kaweth->device_lock, flags);
...@@ -968,7 +958,6 @@ static int kaweth_resume(struct usb_interface *intf) ...@@ -968,7 +958,6 @@ static int kaweth_resume(struct usb_interface *intf)
struct kaweth_device *kaweth = usb_get_intfdata(intf); struct kaweth_device *kaweth = usb_get_intfdata(intf);
unsigned long flags; unsigned long flags;
dev_dbg(&intf->dev, "Resuming device\n");
spin_lock_irqsave(&kaweth->device_lock, flags); spin_lock_irqsave(&kaweth->device_lock, flags);
kaweth->status &= ~KAWETH_STATUS_SUSPENDING; kaweth->status &= ~KAWETH_STATUS_SUSPENDING;
spin_unlock_irqrestore(&kaweth->device_lock, flags); spin_unlock_irqrestore(&kaweth->device_lock, flags);
...@@ -1190,8 +1179,6 @@ static int kaweth_probe( ...@@ -1190,8 +1179,6 @@ static int kaweth_probe(
dev_info(dev, "kaweth interface created at %s\n", dev_info(dev, "kaweth interface created at %s\n",
kaweth->net->name); kaweth->net->name);
dev_dbg(dev, "Kaweth probe returning.\n");
return 0; return 0;
err_intfdata: err_intfdata:
...@@ -1219,8 +1206,6 @@ static void kaweth_disconnect(struct usb_interface *intf) ...@@ -1219,8 +1206,6 @@ 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;
dev_info(&intf->dev, "Unregistering\n");
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
if (!kaweth) { if (!kaweth) {
dev_warn(&intf->dev, "unregistering non-existent device\n"); dev_warn(&intf->dev, "unregistering non-existent device\n");
......
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