diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2009-03-31 14:15:32 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:32 -0400 |
commit | abb596b25edac1ec1acc4ef53df190771661c3d2 (patch) | |
tree | d20ea24960358ce03e0f27eefd2e6911afd1309c /drivers/ide/ide-iops.c | |
parent | 0f861e8c47ede537a8ad280c61d5d00d541f04db (diff) |
ide: turn selectproc() method into dev_select() method (take 5)
Turn selectproc() method into dev_select() method by teaching it to write to the
device register and moving it from 'struct ide_port_ops' to 'struct ide_tp_ops'.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: benh@kernel.crashing.org
Cc: petkovbb@gmail.com
[bart: add ->dev_select to at91_ide.c and tx4939.c (__BIG_ENDIAN case)]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index 6f363a26700d..dfb0ec317fa3 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -29,17 +29,7 @@ | |||
29 | 29 | ||
30 | void SELECT_DRIVE(ide_drive_t *drive) | 30 | void SELECT_DRIVE(ide_drive_t *drive) |
31 | { | 31 | { |
32 | ide_hwif_t *hwif = drive->hwif; | 32 | drive->hwif->tp_ops->dev_select(drive); |
33 | const struct ide_port_ops *port_ops = hwif->port_ops; | ||
34 | struct ide_cmd cmd; | ||
35 | |||
36 | if (port_ops && port_ops->selectproc) | ||
37 | port_ops->selectproc(drive); | ||
38 | |||
39 | memset(&cmd, 0, sizeof(cmd)); | ||
40 | cmd.tf_flags = IDE_TFLAG_OUT_DEVICE; | ||
41 | |||
42 | drive->hwif->tp_ops->tf_load(drive, &cmd); | ||
43 | } | 33 | } |
44 | 34 | ||
45 | void SELECT_MASK(ide_drive_t *drive, int mask) | 35 | void SELECT_MASK(ide_drive_t *drive, int mask) |