diff options
Diffstat (limited to 'drivers/ide/legacy/qd65xx.c')
-rw-r--r-- | drivers/ide/legacy/qd65xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/legacy/qd65xx.c b/drivers/ide/legacy/qd65xx.c index ec408b3a7100..bc27c7aba936 100644 --- a/drivers/ide/legacy/qd65xx.c +++ b/drivers/ide/legacy/qd65xx.c | |||
@@ -305,7 +305,7 @@ static void __init qd6580_init_dev(ide_drive_t *drive) | |||
305 | } else | 305 | } else |
306 | t2 = t1 = hwif->channel ? QD6580_DEF_DATA2 : QD6580_DEF_DATA; | 306 | t2 = t1 = hwif->channel ? QD6580_DEF_DATA2 : QD6580_DEF_DATA; |
307 | 307 | ||
308 | drive->drive_data = drive->select.b.unit ? t2 : t1; | 308 | drive->drive_data = (drive->dn & 1) ? t2 : t1; |
309 | } | 309 | } |
310 | 310 | ||
311 | static const struct ide_port_ops qd6500_port_ops = { | 311 | static const struct ide_port_ops qd6500_port_ops = { |