Commit 904c0296 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 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 a96b98f2
...@@ -580,15 +580,16 @@ static int das1800_init_dma(struct comedi_device *dev, unsigned int dma0, ...@@ -580,15 +580,16 @@ static int das1800_init_dma(struct comedi_device *dev, unsigned int dma0,
break; break;
} }
if (request_dma(dma0, driver_das1800.driver_name)) { if (request_dma(dma0, driver_das1800.driver_name)) {
printk(" failed to allocate dma channel %i\n", dma0); dev_err(dev->hw_dev, "failed to allocate dma channel %i\n",
dma0);
return -EINVAL; return -EINVAL;
} }
devpriv->dma0 = dma0; devpriv->dma0 = dma0;
devpriv->dma_current = dma0; devpriv->dma_current = dma0;
if (dma1) { if (dma1) {
if (request_dma(dma1, driver_das1800.driver_name)) { if (request_dma(dma1, driver_das1800.driver_name)) {
printk(" failed to allocate dma channel %i\n", dev_err(dev->hw_dev, "failed to allocate dma channel %i\n",
dma1); dma1);
return -EINVAL; return -EINVAL;
} }
devpriv->dma1 = dma1; devpriv->dma1 = dma1;
......
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