Commit 1e3a2875 authored by Ravishankar karkala Mallikarjunayya's avatar Ravishankar karkala Mallikarjunayya Committed by Greg Kroah-Hartman

Staging: comedi: fix printk issue in das1800.c

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: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e2499d5c
...@@ -660,7 +660,7 @@ static int das1800_attach(struct comedi_device *dev, ...@@ -660,7 +660,7 @@ static int das1800_attach(struct comedi_device *dev,
board = das1800_probe(dev); board = das1800_probe(dev);
if (board < 0) { if (board < 0) {
printk(" unable to determine board type\n"); dev_err(dev->hw_dev, "unable to determine board type\n");
return -ENODEV; return -ENODEV;
} }
...@@ -684,7 +684,8 @@ static int das1800_attach(struct comedi_device *dev, ...@@ -684,7 +684,8 @@ static int das1800_attach(struct comedi_device *dev,
if (irq) { if (irq) {
if (request_irq(irq, das1800_interrupt, 0, if (request_irq(irq, das1800_interrupt, 0,
driver_das1800.driver_name, dev)) { 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; return -EINVAL;
} }
} }
...@@ -713,7 +714,7 @@ static int das1800_attach(struct comedi_device *dev, ...@@ -713,7 +714,7 @@ static int das1800_attach(struct comedi_device *dev,
devpriv->irq_dma_bits |= 0x38; devpriv->irq_dma_bits |= 0x38;
break; break;
default: default:
printk(" irq out of range\n"); dev_err(dev->hw_dev, "irq out of range\n");
return -EINVAL; return -EINVAL;
break; break;
} }
......
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