Skip to content

Commit

Permalink
Staging: comedi: fix printk issue in das1800.c
Browse files Browse the repository at this point in the history
This is a patch to the das1800.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Coverted printks to dev_<levels>.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ravishankar karkala Mallikarjunayya authored and Greg Kroah-Hartman committed Dec 14, 2011
1 parent e2499d5 commit 1e3a287
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/comedi/drivers/das1800.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ static int das1800_attach(struct comedi_device *dev,

board = das1800_probe(dev);
if (board < 0) {
printk(" unable to determine board type\n");
dev_err(dev->hw_dev, "unable to determine board type\n");
return -ENODEV;
}

Expand All @@ -684,7 +684,8 @@ static int das1800_attach(struct comedi_device *dev,
if (irq) {
if (request_irq(irq, das1800_interrupt, 0,
driver_das1800.driver_name, dev)) {
printk(" unable to allocate irq %u\n", irq);
dev_dbg(dev->hw_dev, "unable to allocate irq %u\n",
irq);
return -EINVAL;
}
}
Expand Down Expand Up @@ -713,7 +714,7 @@ static int das1800_attach(struct comedi_device *dev,
devpriv->irq_dma_bits |= 0x38;
break;
default:
printk(" irq out of range\n");
dev_err(dev->hw_dev, "irq out of range\n");
return -EINVAL;
break;
}
Expand Down

0 comments on commit 1e3a287

Please sign in to comment.