This patch removes useless printk messages. Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@xxxxxxxxxxxxxxx> --- drivers/staging/comedi/drivers/contec_pci_dio.c | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/drivers/staging/comedi/drivers/contec_pci_dio.c b/drivers/staging/comedi/drivers/contec_pci_dio.c index e3659bd..ab39bdf 100644 --- a/drivers/staging/comedi/drivers/contec_pci_dio.c +++ b/drivers/staging/comedi/drivers/contec_pci_dio.c @@ -105,8 +105,6 @@ static int contec_attach(struct comedi_device *dev, struct comedi_devconfig *it) struct pci_dev *pcidev = NULL; struct comedi_subdevice *s; - printk("comedi%d: contec: ", dev->minor); - dev->board_name = thisboard->name; if (alloc_private(dev, sizeof(struct contec_private)) < 0) @@ -126,14 +124,9 @@ static int contec_attach(struct comedi_device *dev, struct comedi_devconfig *it) } } devpriv->pci_dev = pcidev; - if (comedi_pci_enable(pcidev, "contec_pci_dio")) { - printk - ("error enabling PCI device and request regions!\n"); + if (comedi_pci_enable(pcidev, "contec_pci_dio")) return -EIO; - } dev->iobase = pci_resource_start(pcidev, 0); - printk(" base addr %lx ", dev->iobase); - dev->board_ptr = contec_boards + 0; s = dev->subdevices + 0; @@ -153,20 +146,15 @@ static int contec_attach(struct comedi_device *dev, struct comedi_devconfig *it) s->range_table = &range_digital; s->insn_bits = contec_do_insn_bits; - printk("attached\n"); - return 1; } } - printk("card not present!\n"); - return -EIO; } static int contec_detach(struct comedi_device *dev) { - printk("comedi%d: contec: remove\n", dev->minor); if (devpriv && devpriv->pci_dev) { if (dev->iobase) -- 1.7.0.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel