Commit cf8d3af5 authored by Maurice Dawson's avatar Maurice Dawson Committed by Greg Kroah-Hartman

Staging: comedi: fix KERN_facility level coding style issue in adl_pci9118.c

This is a patch to the adl_pci9118.c file that fixes WARNING: printk() should include KERN_facility level found by the checkpatch.pl tool
Signed-off-by: default avatarMaurice Dawson <mauricedawson2699@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 242467bd
...@@ -750,9 +750,8 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev, ...@@ -750,9 +750,8 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev,
comedi_event(dev, s); comedi_event(dev, s);
return; return;
} }
if (int_adstat & devpriv->ai_maskerr) if (int_adstat & devpriv->ai_maskerr)
/* if (int_adstat & 0x106) */ /* if (int_adstat & 0x106) */
if (pci9118_decode_error_status(dev, s, int_adstat)) if (pci9118_decode_error_status(dev, s, int_adstat))
return; return;
...@@ -2215,10 +2214,10 @@ static int pci9118_attach(struct comedi_device *dev, ...@@ -2215,10 +2214,10 @@ static int pci9118_attach(struct comedi_device *dev,
if (!pcidev) { if (!pcidev) {
if (opt_bus || opt_slot) { if (opt_bus || opt_slot) {
printk(" - Card at b:s %d:%d %s\n", printk(KERN_ERR " - Card at b:s %d:%d %s\n",
opt_bus, opt_slot, errstr); opt_bus, opt_slot, errstr);
} else { } else {
printk(" - Card %s\n", errstr); printk(KERN_ERR " - Card %s\n", errstr);
} }
return -EIO; return -EIO;
} }
...@@ -2234,8 +2233,8 @@ static int pci9118_attach(struct comedi_device *dev, ...@@ -2234,8 +2233,8 @@ static int pci9118_attach(struct comedi_device *dev,
iobase_a = pci_resource_start(pcidev, 0); iobase_a = pci_resource_start(pcidev, 0);
iobase_9 = pci_resource_start(pcidev, 2); iobase_9 = pci_resource_start(pcidev, 2);
printk(", b:s:f=%d:%d:%d, io=0x%4lx, 0x%4lx", pci_bus, pci_slot, printk(KERN_ERR ", b:s:f=%d:%d:%d, io=0x%4lx, 0x%4lx", pci_bus,
pci_func, iobase_9, iobase_a); pci_slot, pci_func, iobase_9, iobase_a);
dev->iobase = iobase_9; dev->iobase = iobase_9;
dev->board_name = this_board->name; dev->board_name = this_board->name;
......
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