diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:40 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:40 -0400 |
commit | 7f612f272ad8abe82411f368bfacf793b466e1b3 (patch) | |
tree | 4d850be5dc0569a24a7f8049d4b68d6ab511518e /drivers/ide/ide-io.c | |
parent | 123995b97136cb41fa282f0ed2385f2c8066df96 (diff) |
ide: remove [ata_]select_t
* Use 'drive->dn & 1' in ide_init_disk().
* remove [ata_]select_t.
While at it:
* Use ATA_DEVICE_OBS define in ide_port_init_devices_data().
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r-- | drivers/ide/ide-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index f8d8642903da..ecfb87c10097 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -495,7 +495,7 @@ static void ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) | |||
495 | tf->lbal = drive->sect; | 495 | tf->lbal = drive->sect; |
496 | tf->lbam = drive->cyl; | 496 | tf->lbam = drive->cyl; |
497 | tf->lbah = drive->cyl >> 8; | 497 | tf->lbah = drive->cyl >> 8; |
498 | tf->device = (drive->head - 1) | drive->select.all; | 498 | tf->device = (drive->head - 1) | drive->select; |
499 | tf->command = ATA_CMD_INIT_DEV_PARAMS; | 499 | tf->command = ATA_CMD_INIT_DEV_PARAMS; |
500 | } | 500 | } |
501 | 501 | ||