Commit cecdee85 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.

Converted printk 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 7cf372b1
...@@ -573,9 +573,9 @@ static int das1800_init_dma(struct comedi_device *dev, unsigned int dma0, ...@@ -573,9 +573,9 @@ static int das1800_init_dma(struct comedi_device *dev, unsigned int dma0,
devpriv->dma_bits |= DMA_CH7_CH5; devpriv->dma_bits |= DMA_CH7_CH5;
break; break;
default: default:
printk(" only supports dma channels 5 through 7\n" dev_err(dev->hw_dev, " only supports dma channels 5 through 7\n"
" Dual dma only allows the following combinations:\n" " Dual dma only allows the following combinations:\n"
" dma 5,6 / 6,7 / or 7,5\n"); " dma 5,6 / 6,7 / or 7,5\n");
return -EINVAL; return -EINVAL;
break; break;
} }
...@@ -645,7 +645,7 @@ static int das1800_attach(struct comedi_device *dev, ...@@ -645,7 +645,7 @@ static int das1800_attach(struct comedi_device *dev,
printk(KERN_CONT "\n"); printk(KERN_CONT "\n");
if (iobase == 0) { if (iobase == 0) {
printk(" io base address required\n"); dev_err(dev->hw_dev, "io base address required\n");
return -EINVAL; return -EINVAL;
} }
...@@ -815,8 +815,8 @@ static int das1800_detach(struct comedi_device *dev) ...@@ -815,8 +815,8 @@ static int das1800_detach(struct comedi_device *dev)
kfree(devpriv->ai_buf1); kfree(devpriv->ai_buf1);
} }
printk("comedi%d: %s: remove\n", dev->minor, dev_dbg(dev->hw_dev, "comedi%d: %s: remove\n", dev->minor,
driver_das1800.driver_name); driver_das1800.driver_name);
return 0; return 0;
}; };
......
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