diff options
-rw-r--r-- | drivers/ide/pci/cs5535.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/pci/cs5535.c b/drivers/ide/pci/cs5535.c index e4891a16afef..c141b7306179 100644 --- a/drivers/ide/pci/cs5535.c +++ b/drivers/ide/pci/cs5535.c | |||
@@ -84,7 +84,7 @@ static void cs5535_set_speed(ide_drive_t *drive, const u8 speed) | |||
84 | 84 | ||
85 | /* Set the PIO timings */ | 85 | /* Set the PIO timings */ |
86 | if ((speed & XFER_MODE) == XFER_PIO) { | 86 | if ((speed & XFER_MODE) == XFER_PIO) { |
87 | ide_drive_t *pair = &drive->hwif->drives[drive->dn ^ 1]; | 87 | ide_drive_t *pair = ide_get_paired_drive(drive); |
88 | u8 cmd, pioa; | 88 | u8 cmd, pioa; |
89 | 89 | ||
90 | cmd = pioa = speed - XFER_PIO_0; | 90 | cmd = pioa = speed - XFER_PIO_0; |