aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBorislav Petkov <bbpetkov@yahoo.de>2008-02-02 13:56:36 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 13:56:36 -0500
commit0bf399e69c365a71c230014af90966faea92e0a3 (patch)
treeea4537730d53e2ce7709de945e148d9e1f749e02
parentd652c1380870228dfe05a2f00ce4edec3f5bd42d (diff)
ide-floppy: remove IDEFLOPPY_DEBUG_BUGS macro
Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/ide-floppy.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 416719c1718b..5ea1b1b86c4e 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -52,7 +52,6 @@
52 */ 52 */
53#define IDEFLOPPY_DEBUG_LOG 0 53#define IDEFLOPPY_DEBUG_LOG 0
54#define IDEFLOPPY_DEBUG_INFO 0 54#define IDEFLOPPY_DEBUG_INFO 0
55#define IDEFLOPPY_DEBUG_BUGS 1
56 55
57/* #define IDEFLOPPY_DEBUG(fmt, args...) printk(KERN_INFO fmt, ## args) */ 56/* #define IDEFLOPPY_DEBUG(fmt, args...) printk(KERN_INFO fmt, ## args) */
58#define IDEFLOPPY_DEBUG( fmt, args... ) 57#define IDEFLOPPY_DEBUG( fmt, args... )
@@ -280,13 +279,11 @@ static void idefloppy_discard_data (ide_drive_t *drive, unsigned int bcount)
280 (void) HWIF(drive)->INB(IDE_DATA_REG); 279 (void) HWIF(drive)->INB(IDE_DATA_REG);
281} 280}
282 281
283#if IDEFLOPPY_DEBUG_BUGS 282static void idefloppy_write_zeros(ide_drive_t *drive, unsigned int bcount)
284static void idefloppy_write_zeros (ide_drive_t *drive, unsigned int bcount)
285{ 283{
286 while (bcount--) 284 while (bcount--)
287 HWIF(drive)->OUTB(0, IDE_DATA_REG); 285 HWIF(drive)->OUTB(0, IDE_DATA_REG);
288} 286}
289#endif /* IDEFLOPPY_DEBUG_BUGS */
290 287
291 288
292/* 289/*
@@ -382,12 +379,10 @@ static void idefloppy_output_buffers (ide_drive_t *drive, idefloppy_pc_t *pc, un
382 379
383 idefloppy_do_end_request(drive, 1, done >> 9); 380 idefloppy_do_end_request(drive, 1, done >> 9);
384 381
385#if IDEFLOPPY_DEBUG_BUGS
386 if (bcount) { 382 if (bcount) {
387 printk(KERN_ERR "%s: leftover data in idefloppy_output_buffers, bcount == %d\n", drive->name, bcount); 383 printk(KERN_ERR "%s: leftover data in idefloppy_output_buffers, bcount == %d\n", drive->name, bcount);
388 idefloppy_write_zeros(drive, bcount); 384 idefloppy_write_zeros(drive, bcount);
389 } 385 }
390#endif
391} 386}
392 387
393static void idefloppy_update_buffers (ide_drive_t *drive, idefloppy_pc_t *pc) 388static void idefloppy_update_buffers (ide_drive_t *drive, idefloppy_pc_t *pc)