This is a patch to the rti802.c file that fixes up a printk found by the checkpatch.pl tool. Used dev_*() functions instead of printks. Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@xxxxxxxxxxxxxxx> --- drivers/staging/comedi/drivers/rti802.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/rti802.c b/drivers/staging/comedi/drivers/rti802.c index 21baf1a..202d830 100644 --- a/drivers/staging/comedi/drivers/rti802.c +++ b/drivers/staging/comedi/drivers/rti802.c @@ -94,9 +94,9 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it) unsigned long iobase; iobase = it->options[0]; - printk(KERN_INFO "comedi%d: rti802: 0x%04lx ", dev->minor, iobase); + dev_info(dev->hw_dev, "comedi%d: 0x%04lx\n", dev->minor, iobase); if (!request_region(iobase, RTI802_SIZE, "rti802")) { - printk(KERN_WARNING "I/O port conflict\n"); + dev_warn(dev->hw_dev, "I/O port conflict\n"); return -EIO; } dev->iobase = iobase; @@ -131,7 +131,7 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it) static int rti802_detach(struct comedi_device *dev) { - printk(KERN_INFO "comedi%d: rti802: remove\n", dev->minor); + dev_info(dev->hw_dev, "comedi%d: remove\n", dev->minor); if (dev->iobase) release_region(dev->iobase, RTI802_SIZE); -- 1.7.0.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel