diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2009-03-31 14:15:33 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:33 -0400 |
commit | fdd88f0af616db59a6a36bdf0185181d2b779f53 (patch) | |
tree | 9e0acaddc49f7354430457b07ee0a94757bbc314 /drivers/ide/ide-eh.c | |
parent | abb596b25edac1ec1acc4ef53df190771661c3d2 (diff) |
ide: inline SELECT_DRIVE()
Since SELECT_DRIVE() has boiled down to a mere dev_select() method call, it now
makes sense to just inline it...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-eh.c')
-rw-r--r-- | drivers/ide/ide-eh.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ide/ide-eh.c b/drivers/ide/ide-eh.c index de4b7f1c9c9f..5d5fb961b5ce 100644 --- a/drivers/ide/ide-eh.c +++ b/drivers/ide/ide-eh.c | |||
@@ -165,11 +165,12 @@ static ide_startstop_t do_reset1(ide_drive_t *, int); | |||
165 | static ide_startstop_t atapi_reset_pollfunc(ide_drive_t *drive) | 165 | static ide_startstop_t atapi_reset_pollfunc(ide_drive_t *drive) |
166 | { | 166 | { |
167 | ide_hwif_t *hwif = drive->hwif; | 167 | ide_hwif_t *hwif = drive->hwif; |
168 | const struct ide_tp_ops *tp_ops = hwif->tp_ops; | ||
168 | u8 stat; | 169 | u8 stat; |
169 | 170 | ||
170 | SELECT_DRIVE(drive); | 171 | tp_ops->dev_select(drive); |
171 | udelay(10); | 172 | udelay(10); |
172 | stat = hwif->tp_ops->read_status(hwif); | 173 | stat = tp_ops->read_status(hwif); |
173 | 174 | ||
174 | if (OK_STAT(stat, 0, ATA_BUSY)) | 175 | if (OK_STAT(stat, 0, ATA_BUSY)) |
175 | printk(KERN_INFO "%s: ATAPI reset complete\n", drive->name); | 176 | printk(KERN_INFO "%s: ATAPI reset complete\n", drive->name); |
@@ -348,7 +349,7 @@ static ide_startstop_t do_reset1(ide_drive_t *drive, int do_not_try_atapi) | |||
348 | /* For an ATAPI device, first try an ATAPI SRST. */ | 349 | /* For an ATAPI device, first try an ATAPI SRST. */ |
349 | if (drive->media != ide_disk && !do_not_try_atapi) { | 350 | if (drive->media != ide_disk && !do_not_try_atapi) { |
350 | pre_reset(drive); | 351 | pre_reset(drive); |
351 | SELECT_DRIVE(drive); | 352 | tp_ops->dev_select(drive); |
352 | udelay(20); | 353 | udelay(20); |
353 | tp_ops->exec_command(hwif, ATA_CMD_DEV_RESET); | 354 | tp_ops->exec_command(hwif, ATA_CMD_DEV_RESET); |
354 | ndelay(400); | 355 | ndelay(400); |