staging: comedi: me4000: remove PORT_PDEBUG macro
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 14 Jun 2012 02:12:35 +0000 (19:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jun 2012 00:26:51 +0000 (17:26 -0700)
The PORT_PDEBUG macro is used to output the result of every port
io operation. This shouldn't be in a mainline driver. Remove it.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/me4000.c
drivers/staging/comedi/drivers/me4000.h

index f5a0bcf..ddb9384 100644 (file)
@@ -111,14 +111,12 @@ static int ai_write_chanlist(struct comedi_device *dev,
 static inline void me4000_outb(struct comedi_device *dev, unsigned char value,
                               unsigned long port)
 {
-       PORT_PDEBUG("--> 0x%02X port 0x%04lX\n", value, port);
        outb(value, port);
 }
 
 static inline void me4000_outl(struct comedi_device *dev, unsigned long value,
                               unsigned long port)
 {
-       PORT_PDEBUG("--> 0x%08lX port 0x%04lX\n", value, port);
        outl(value, port);
 }
 
@@ -127,7 +125,6 @@ static inline unsigned long me4000_inl(struct comedi_device *dev,
 {
        unsigned long value;
        value = inl(port);
-       PORT_PDEBUG("<-- 0x%08lX port 0x%04lX\n", value, port);
        return value;
 }
 
@@ -136,7 +133,6 @@ static inline unsigned char me4000_inb(struct comedi_device *dev,
 {
        unsigned char value;
        value = inb(port);
-       PORT_PDEBUG("<-- 0x%08X port 0x%04lX\n", value, port);
        return value;
 }
 
index 7087da2..d9ee3fb 100644 (file)
   Debug section
   ===========================================================================*/
 
-#undef ME4000_PORT_DEBUG       /*  Debug port access */
 #undef ME4000_ISR_DEBUG                /*  Debug the interrupt service routine */
 #undef ME4000_DEBUG            /*  General purpose debug masseges */
 
-#ifdef ME4000_PORT_DEBUG
-#undef PORT_PDEBUG
-#define PORT_PDEBUG(fmt, args...) printk(KERN_DEBUG"comedi%d: me4000: " fmt, dev->minor,  ##args)
-#else
-#define PORT_PDEBUG(fmt, args...)      /*  no debugging, do nothing */
-#endif
-
 #ifdef ME4000_ISR_DEBUG
 #undef ISR_PDEBUG
 #define ISR_PDEBUG(fmt, args...) printk(KERN_DEBUG"comedi%d: me4000: " fmt, dev->minor,  ##args)