Commit 8b83e005 authored by Gustavo Silva's avatar Gustavo Silva Committed by Greg Kroah-Hartman

Staging: comedi: drivers: fix coding style issues in pcmda12.c

This is a patch to the pcmda12.c file that fixes up five printk() warning issues
Signed-off-by: default avatarGustavo Silva <silvagustavo@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4c68fb42
...@@ -157,7 +157,8 @@ static int pcmda12_attach(struct comedi_device *dev, ...@@ -157,7 +157,8 @@ static int pcmda12_attach(struct comedi_device *dev,
unsigned long iobase; unsigned long iobase;
iobase = it->options[0]; iobase = it->options[0];
printk("comedi%d: %s: io: %lx %s ", dev->minor, driver.driver_name, printk(KERN_INFO
"comedi%d: %s: io: %lx %s ", dev->minor, driver.driver_name,
iobase, it->options[1] ? "simultaneous xfer mode enabled" : ""); iobase, it->options[1] ? "simultaneous xfer mode enabled" : "");
if (!request_region(iobase, IOSIZE, driver.driver_name)) { if (!request_region(iobase, IOSIZE, driver.driver_name)) {
...@@ -177,7 +178,7 @@ static int pcmda12_attach(struct comedi_device *dev, ...@@ -177,7 +178,7 @@ static int pcmda12_attach(struct comedi_device *dev,
* convenient macro defined in comedidev.h. * convenient macro defined in comedidev.h.
*/ */
if (alloc_private(dev, sizeof(struct pcmda12_private)) < 0) { if (alloc_private(dev, sizeof(struct pcmda12_private)) < 0) {
printk("cannot allocate private data structure\n"); printk(KERN_ERR "cannot allocate private data structure\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -191,7 +192,7 @@ static int pcmda12_attach(struct comedi_device *dev, ...@@ -191,7 +192,7 @@ static int pcmda12_attach(struct comedi_device *dev,
* 96-channel version of the board. * 96-channel version of the board.
*/ */
if (alloc_subdevices(dev, 1) < 0) { if (alloc_subdevices(dev, 1) < 0) {
printk("cannot allocate subdevice data structures\n"); printk(KERN_ERR "cannot allocate subdevice data structures\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -207,7 +208,7 @@ static int pcmda12_attach(struct comedi_device *dev, ...@@ -207,7 +208,7 @@ static int pcmda12_attach(struct comedi_device *dev,
zero_chans(dev); /* clear out all the registers, basically */ zero_chans(dev); /* clear out all the registers, basically */
printk("attached\n"); printk(KERN_INFO "attached\n");
return 1; return 1;
} }
...@@ -222,7 +223,8 @@ static int pcmda12_attach(struct comedi_device *dev, ...@@ -222,7 +223,8 @@ static int pcmda12_attach(struct comedi_device *dev,
*/ */
static int pcmda12_detach(struct comedi_device *dev) static int pcmda12_detach(struct comedi_device *dev)
{ {
printk("comedi%d: %s: remove\n", dev->minor, driver.driver_name); printk(KERN_INFO
"comedi%d: %s: remove\n", dev->minor, driver.driver_name);
if (dev->iobase) if (dev->iobase)
release_region(dev->iobase, IOSIZE); release_region(dev->iobase, IOSIZE);
return 0; return 0;
......
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