Skip to content

Commit 58dcf8d

Browse files
committed
pdc202xx_old: remove no longer needed debugging code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent c95522a commit 58dcf8d

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎drivers/ide/pdc202xx_old.c‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
#define DRV_NAME "pdc202xx_old"
2323

24-
#define PDC202XX_DEBUG_DRIVE_INFO 0
25-
2624
static void pdc_old_disable_66MHz_clock(ide_hwif_t *);
2725

2826
static void pdc202xx_set_mode(ide_drive_t *drive, const u8 speed)
@@ -34,11 +32,6 @@ static void pdc202xx_set_mode(ide_drive_t *drive, const u8 speed)
3432
u8 AP = 0, BP = 0, CP = 0;
3533
u8 TA = 0, TB = 0, TC = 0;
3634

37-
#if PDC202XX_DEBUG_DRIVE_INFO
38-
u32 drive_conf = 0;
39-
pci_read_config_dword(dev, drive_pci, &drive_conf);
40-
#endif
41-
4235
/*
4336
* TODO: do this once per channel
4437
*/
@@ -89,14 +82,6 @@ static void pdc202xx_set_mode(ide_drive_t *drive, const u8 speed)
8982
pci_write_config_byte(dev, drive_pci + 1, BP | TB);
9083
pci_write_config_byte(dev, drive_pci + 2, CP | TC);
9184
}
92-
93-
#if PDC202XX_DEBUG_DRIVE_INFO
94-
printk(KERN_DEBUG "%s: %s drive%d 0x%08x ",
95-
drive->name, ide_xfer_verbose(speed),
96-
drive->dn, drive_conf);
97-
pci_read_config_dword(dev, drive_pci, &drive_conf);
98-
printk("0x%08x\n", drive_conf);
99-
#endif
10085
}
10186

10287
static void pdc202xx_set_pio_mode(ide_drive_t *drive, const u8 pio)

0 commit comments

Comments
 (0)