Commit a917d4c4 authored by Chihau Chau's avatar Chihau Chau Committed by Greg Kroah-Hartman

Staging: comedi: poc: Adding some KERN_ facility level

This fixes some coding style issues like include KERN_ facility levels
in some printk() and one trailing whitespace error.
Signed-off-by: default avatarChihau Chau <chihau@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d4023a5e
...@@ -122,22 +122,21 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -122,22 +122,21 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
unsigned int iosize; unsigned int iosize;
iobase = it->options[0]; iobase = it->options[0];
printk("comedi%d: poc: using %s iobase 0x%lx\n", dev->minor, printk(KERN_INFO "comedi%d: poc: using %s iobase 0x%lx\n", dev->minor,
this_board->name, iobase); this_board->name, iobase);
dev->board_name = this_board->name; dev->board_name = this_board->name;
if (iobase == 0) { if (iobase == 0) {
printk("io base address required\n"); printk(KERN_ERR "io base address required\n");
return -EINVAL; return -EINVAL;
} }
iosize = this_board->iosize; iosize = this_board->iosize;
/* check if io addresses are available */ /* check if io addresses are available */
if (!request_region(iobase, iosize, "dac02")) { if (!request_region(iobase, iosize, "dac02")) {
printk printk(KERN_ERR "I/O port conflict: failed to allocate ports "
("I/O port conflict: failed to allocate ports 0x%lx to " "0x%lx to 0x%lx\n", iobase, iobase + iosize - 1);
"0x%lx\n", iobase, iobase + iosize - 1);
return -EIO; return -EIO;
} }
dev->iobase = iobase; dev->iobase = iobase;
......
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