staging: comedi: daqboard2000: remove the dev_printk function trace
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 19 Sep 2012 01:48:50 +0000 (18:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2012 08:41:44 +0000 (09:41 +0100)
These kernel messages are just noise and should be removed in
the final driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/daqboard2000.c

index 436229d73ff0d9632d6cd73d880fa8ddb796b96e..f25f604f1b042816396f6567ff348bca4fe346ff 100644 (file)
@@ -465,7 +465,6 @@ static void daqboard2000_resetLocalBus(struct comedi_device *dev)
 {
        struct daqboard2000_private *devpriv = dev->private;
 
-       dev_dbg(dev->class_dev, "daqboard2000_resetLocalBus\n");
        writel(DAQBOARD2000_SECRLocalBusHi, devpriv->plx + 0x6c);
        udelay(10000);
        writel(DAQBOARD2000_SECRLocalBusLo, devpriv->plx + 0x6c);
@@ -476,7 +475,6 @@ static void daqboard2000_reloadPLX(struct comedi_device *dev)
 {
        struct daqboard2000_private *devpriv = dev->private;
 
-       dev_dbg(dev->class_dev, "daqboard2000_reloadPLX\n");
        writel(DAQBOARD2000_SECRReloadLo, devpriv->plx + 0x6c);
        udelay(10000);
        writel(DAQBOARD2000_SECRReloadHi, devpriv->plx + 0x6c);
@@ -489,7 +487,6 @@ static void daqboard2000_pulseProgPin(struct comedi_device *dev)
 {
        struct daqboard2000_private *devpriv = dev->private;
 
-       dev_dbg(dev->class_dev, "daqboard2000_pulseProgPin 1\n");
        writel(DAQBOARD2000_SECRProgPinHi, devpriv->plx + 0x6c);
        udelay(10000);
        writel(DAQBOARD2000_SECRProgPinLo, devpriv->plx + 0x6c);
@@ -725,11 +722,8 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
        devpriv = dev->private;
 
        result = comedi_pci_enable(pcidev, "daqboard2000");
-       if (result < 0) {
-               dev_err(dev->class_dev,
-                       "failed to enable PCI device and request regions\n");
-               return -EIO;
-       }
+       if (result < 0)
+               return result;
        dev->iobase = 1;        /* the "detach" needs this */
 
        pci_base = pci_resource_start(pcidev, 0);