aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-io.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-06 11:20:53 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-06 11:20:53 -0500
commit7f3c868ba78e486bd9d7569f884dd46d8f59bb18 (patch)
treec52ff0d21b22ae60194a462d565a6caf2518b569 /drivers/ide/ide-io.c
parent9892ec5497af1ec38c46974b5a370ba11c636b19 (diff)
ide: remove ide_driver_t typedef
While at it: - s/struct ide_driver_s/struct ide_driver/ - use to_ide_driver() macro in ide-proc.c Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r--drivers/ide/ide-io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 0e2b95ec08a5..e788b3622f2e 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -199,9 +199,9 @@ EXPORT_SYMBOL(ide_end_drive_cmd);
199static void ide_kill_rq(ide_drive_t *drive, struct request *rq) 199static void ide_kill_rq(ide_drive_t *drive, struct request *rq)
200{ 200{
201 if (rq->rq_disk) { 201 if (rq->rq_disk) {
202 ide_driver_t *drv; 202 struct ide_driver *drv;
203 203
204 drv = *(ide_driver_t **)rq->rq_disk->private_data; 204 drv = *(struct ide_driver **)rq->rq_disk->private_data;
205 drv->end_request(drive, 0, 0); 205 drv->end_request(drive, 0, 0);
206 } else 206 } else
207 ide_end_request(drive, 0, 0); 207 ide_end_request(drive, 0, 0);
@@ -333,9 +333,9 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, u8 stat)
333 } 333 }
334 334
335 if (rq->rq_disk) { 335 if (rq->rq_disk) {
336 ide_driver_t *drv; 336 struct ide_driver *drv;
337 337
338 drv = *(ide_driver_t **)rq->rq_disk->private_data; 338 drv = *(struct ide_driver **)rq->rq_disk->private_data;
339 return drv->error(drive, rq, stat, err); 339 return drv->error(drive, rq, stat, err);
340 } else 340 } else
341 return __ide_error(drive, rq, stat, err); 341 return __ide_error(drive, rq, stat, err);
@@ -606,7 +606,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
606 return startstop; 606 return startstop;
607 } 607 }
608 if (!drive->special.all) { 608 if (!drive->special.all) {
609 ide_driver_t *drv; 609 struct ide_driver *drv;
610 610
611 /* 611 /*
612 * We reset the drive so we need to issue a SETFEATURES. 612 * We reset the drive so we need to issue a SETFEATURES.
@@ -639,7 +639,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
639 */ 639 */
640 return ide_special_rq(drive, rq); 640 return ide_special_rq(drive, rq);
641 641
642 drv = *(ide_driver_t **)rq->rq_disk->private_data; 642 drv = *(struct ide_driver **)rq->rq_disk->private_data;
643 643
644 return drv->do_request(drive, rq, rq->sector); 644 return drv->do_request(drive, rq, rq->sector);
645 } 645 }