mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 23:20:05 +00:00
Staging: comedi: comedi_parport: added KERN_ facility levels to printk messages.
This is a patch to the comedi_parport.c file that fixes the KERN_ facility warnings found by the checkpatch.pl tool Signed-off-by: Stephen Palmateer <stephen.palmateer@netsweeper.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
1bf2ee4ea1
commit
8487d0e93a
@ -309,18 +309,18 @@ static int parport_attach(struct comedi_device *dev,
|
||||
iobase = it->options[0];
|
||||
printk(KERN_INFO "comedi%d: parport: 0x%04lx ", dev->minor, iobase);
|
||||
if (!request_region(iobase, PARPORT_SIZE, "parport (comedi)")) {
|
||||
printk("I/O port conflict\n");
|
||||
printk(KERN_ERR "I/O port conflict\n");
|
||||
return -EIO;
|
||||
}
|
||||
dev->iobase = iobase;
|
||||
|
||||
irq = it->options[1];
|
||||
if (irq) {
|
||||
printk(" irq=%u", irq);
|
||||
printk(KERN_INFO " irq=%u", irq);
|
||||
ret = request_irq(irq, parport_interrupt, 0, "comedi_parport",
|
||||
dev);
|
||||
if (ret < 0) {
|
||||
printk(" irq not available\n");
|
||||
printk(KERN_ERR " irq not available\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
dev->irq = irq;
|
||||
@ -380,13 +380,13 @@ static int parport_attach(struct comedi_device *dev,
|
||||
devpriv->c_data = 0;
|
||||
outb(devpriv->c_data, dev->iobase + PARPORT_C);
|
||||
|
||||
printk("\n");
|
||||
printk(KERN_INFO "\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int parport_detach(struct comedi_device *dev)
|
||||
{
|
||||
printk("comedi%d: parport: remove\n", dev->minor);
|
||||
printk(KERN_INFO "comedi%d: parport: remove\n", dev->minor);
|
||||
|
||||
if (dev->iobase)
|
||||
release_region(dev->iobase, PARPORT_SIZE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user