Skip to content

Commit

Permalink
staging: comedi: ni_daq_700: cleanup pcmcia debug output messages
Browse files Browse the repository at this point in the history
These messages should probably just be removed. For now just clean
then up.

Remove a couple redundant KERN_INFO messages in the pcmcia support
code and leave the dev_dbg() ones.

Change the dev_dgb() messages to use __func__ instead of the open
coded string.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 23, 2012
1 parent 740b48b commit 9c1eb8e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions drivers/staging/comedi/drivers/ni_daq_700.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static struct comedi_driver driver_dio700 = {

static void dio700_release(struct pcmcia_device *link)
{
dev_dbg(&link->dev, "dio700_release\n");
dev_dbg(&link->dev, "%s\n", __func__);

pcmcia_disable_device(link);
}
Expand All @@ -184,9 +184,7 @@ static void dio700_config(struct pcmcia_device *link)
{
int ret;

printk(KERN_INFO "ni_daq_700: cs-config\n");

dev_dbg(&link->dev, "dio700_config\n");
dev_dbg(&link->dev, "%s\n", __func__);

link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_AUDIO |
CONF_AUTO_SET_IO;
Expand All @@ -207,7 +205,7 @@ static void dio700_config(struct pcmcia_device *link)
return;

failed:
printk(KERN_INFO "ni_daq_700 cs failed");
dev_dbg(&link->dev, "%s failed\n", __func__);
dio700_release(link);

}
Expand All @@ -222,9 +220,7 @@ static int dio700_cs_attach(struct pcmcia_device *link)
{
struct local_info_t *local;

printk(KERN_INFO "ni_daq_700: cs-attach\n");

dev_dbg(&link->dev, "dio700_cs_attach()\n");
dev_dbg(&link->dev, "%s\n", __func__);

/* Allocate space for private device-specific data */
local = kzalloc(sizeof(struct local_info_t), GFP_KERNEL);
Expand Down

0 comments on commit 9c1eb8e

Please sign in to comment.