diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2016-01-03 16:05:04 +1100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-01-06 21:42:51 -0500 |
commit | 2f7dba9f7d8f8ece8f224bf26e9b2a06da2ed15c (patch) | |
tree | b8cba2d18d5c4b47cdcd29b23f77304d9fd868ca /drivers/scsi/pas16.h | |
parent | d5f7e65df0d41982b1e9cbba9df04003ebb2178d (diff) |
ncr5380: Eliminate PDEBUG*, TDEBUG* and DTCDEBUG* macros
Replace {P,T,DTC}DEBUG_INIT with NDEBUG_INIT. Remove dead debugging
code, including code that's conditional upon *DEBUG_TRANSFER.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pas16.h')
-rw-r--r-- | drivers/scsi/pas16.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/scsi/pas16.h b/drivers/scsi/pas16.h index c6109c80050b..1fc7c049d0a1 100644 --- a/drivers/scsi/pas16.h +++ b/drivers/scsi/pas16.h @@ -24,9 +24,6 @@ #ifndef PAS16_H #define PAS16_H -#define PDEBUG_INIT 0x1 -#define PDEBUG_TRANSFER 0x2 - #define PAS16_DEFAULT_BASE_1 0x388 #define PAS16_DEFAULT_BASE_2 0x384 #define PAS16_DEFAULT_BASE_3 0x38c @@ -120,21 +117,8 @@ #define PAS16_io_port(reg) ( io_port + pas16_offset[(reg)] ) -#if !(PDEBUG & PDEBUG_TRANSFER) #define NCR5380_read(reg) ( inb(PAS16_io_port(reg)) ) #define NCR5380_write(reg, value) ( outb((value),PAS16_io_port(reg)) ) -#else -#define NCR5380_read(reg) \ - (((unsigned char) printk("scsi%d : read register %d at io_port %04x\n"\ - , instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) ) - -#define NCR5380_write(reg, value) \ - (printk("scsi%d : write %02x to register %d at io_port %04x\n", \ - instance->hostno, (value), (reg), PAS16_io_port(reg)), \ - outb( (value),PAS16_io_port(reg) ) ) - -#endif - #define NCR5380_intr pas16_intr #define do_NCR5380_intr do_pas16_intr |