diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2009-01-02 10:12:54 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-02 10:12:54 -0500 |
commit | 5317464dccd0c03026d60f1e9968de4f9cd23f69 (patch) | |
tree | 4ff0d14a1cc9c5fabdcd835140950e2b12d76242 /drivers/ide | |
parent | 5d655a03b847fbe5353a8a74bbeb75e18708dca3 (diff) |
ide: remove the last ide-scsi remnants
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-atapi.c | 3 | ||||
-rw-r--r-- | drivers/ide/ide-io.c | 3 | ||||
-rw-r--r-- | drivers/ide/ide-ioctls.c | 3 | ||||
-rw-r--r-- | drivers/ide/ide-probe.c | 2 |
4 files changed, 2 insertions, 9 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index 7a04509bf962..d412bd2bd7fd 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -17,8 +17,7 @@ | |||
17 | 17 | ||
18 | static inline int dev_is_idecd(ide_drive_t *drive) | 18 | static inline int dev_is_idecd(ide_drive_t *drive) |
19 | { | 19 | { |
20 | return (drive->media == ide_cdrom || drive->media == ide_optical) && | 20 | return drive->media == ide_cdrom || drive->media == ide_optical; |
21 | !(drive->dev_flags & IDE_DFLAG_SCSI); | ||
22 | } | 21 | } |
23 | 22 | ||
24 | /* | 23 | /* |
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index bb3248abf47d..1c36a8e83d36 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -426,9 +426,6 @@ void ide_map_sg(ide_drive_t *drive, struct request *rq) | |||
426 | ide_hwif_t *hwif = drive->hwif; | 426 | ide_hwif_t *hwif = drive->hwif; |
427 | struct scatterlist *sg = hwif->sg_table; | 427 | struct scatterlist *sg = hwif->sg_table; |
428 | 428 | ||
429 | if (hwif->sg_mapped) /* needed by ide-scsi */ | ||
430 | return; | ||
431 | |||
432 | if (rq->cmd_type != REQ_TYPE_ATA_TASKFILE) { | 429 | if (rq->cmd_type != REQ_TYPE_ATA_TASKFILE) { |
433 | hwif->sg_nents = blk_rq_map_sg(drive->queue, rq, sg); | 430 | hwif->sg_nents = blk_rq_map_sg(drive->queue, rq, sg); |
434 | } else { | 431 | } else { |
diff --git a/drivers/ide/ide-ioctls.c b/drivers/ide/ide-ioctls.c index 28232c64c346..1be263eb9c07 100644 --- a/drivers/ide/ide-ioctls.c +++ b/drivers/ide/ide-ioctls.c | |||
@@ -95,8 +95,7 @@ static int ide_set_nice_ioctl(ide_drive_t *drive, unsigned long arg) | |||
95 | return -EPERM; | 95 | return -EPERM; |
96 | 96 | ||
97 | if (((arg >> IDE_NICE_DSC_OVERLAP) & 1) && | 97 | if (((arg >> IDE_NICE_DSC_OVERLAP) & 1) && |
98 | (drive->media != ide_tape || | 98 | (drive->media != ide_tape)) |
99 | (drive->dev_flags & IDE_DFLAG_SCSI))) | ||
100 | return -EPERM; | 99 | return -EPERM; |
101 | 100 | ||
102 | if ((arg >> IDE_NICE_DSC_OVERLAP) & 1) | 101 | if ((arg >> IDE_NICE_DSC_OVERLAP) & 1) |
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 966b74c15773..c5adb7b9c5b5 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -1141,8 +1141,6 @@ static struct kobject *ata_probe(dev_t dev, int *part, void *data) | |||
1141 | 1141 | ||
1142 | if (drive->media == ide_disk) | 1142 | if (drive->media == ide_disk) |
1143 | request_module("ide-disk"); | 1143 | request_module("ide-disk"); |
1144 | if (drive->dev_flags & IDE_DFLAG_SCSI) | ||
1145 | request_module("ide-scsi"); | ||
1146 | if (drive->media == ide_cdrom || drive->media == ide_optical) | 1144 | if (drive->media == ide_cdrom || drive->media == ide_optical) |
1147 | request_module("ide-cd"); | 1145 | request_module("ide-cd"); |
1148 | if (drive->media == ide_tape) | 1146 | if (drive->media == ide_tape) |