Skip to content

Commit

Permalink
staging: comedi: rti800: remove board attach kernel noise
Browse files Browse the repository at this point in the history
The printk's during the bard attach are just added noise. Remove
them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 9, 2013
1 parent f201568 commit 62d4d56
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions drivers/staging/comedi/drivers/rti800.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,8 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
struct comedi_subdevice *s;

iobase = it->options[0];
printk(KERN_INFO "comedi%d: rti800: 0x%04lx\n", dev->minor, iobase);
if (!request_region(iobase, RTI800_SIZE, "rti800")) {
printk(KERN_WARNING "I/O port conflict\n");
if (!request_region(iobase, RTI800_SIZE, "rti800"))
return -EIO;
}
dev->iobase = iobase;

outb(0, dev->iobase + RTI800_CSR);
Expand All @@ -322,15 +319,10 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)

irq = it->options[1];
if (irq) {
printk(KERN_INFO "( irq = %u )\n", irq);
ret = request_irq(irq, rti800_interrupt, 0, "rti800", dev);
if (ret < 0) {
printk(KERN_WARNING " Failed to allocate IRQ\n");
if (ret < 0)
return ret;
}
dev->irq = irq;
} else {
printk(KERN_INFO "( no irq )\n");
}

dev->board_name = board->name;
Expand Down

0 comments on commit 62d4d56

Please sign in to comment.