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/legacy/ide-4drives.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/legacy/ide-4drives.c')
-rw-r--r-- | drivers/ide/legacy/ide-4drives.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/legacy/ide-4drives.c b/drivers/ide/legacy/ide-4drives.c index c76d55de6996..9e85b1ec9607 100644 --- a/drivers/ide/legacy/ide-4drives.c +++ b/drivers/ide/legacy/ide-4drives.c | |||
@@ -14,7 +14,7 @@ MODULE_PARM_DESC(probe, "probe for generic IDE chipset with 4 drives/port"); | |||
14 | static void ide_4drives_init_dev(ide_drive_t *drive) | 14 | static void ide_4drives_init_dev(ide_drive_t *drive) |
15 | { | 15 | { |
16 | if (drive->hwif->channel) | 16 | if (drive->hwif->channel) |
17 | drive->select.all ^= 0x20; | 17 | drive->select ^= 0x20; |
18 | } | 18 | } |
19 | 19 | ||
20 | static const struct ide_port_ops ide_4drives_port_ops = { | 20 | static const struct ide_port_ops ide_4drives_port_ops = { |