ide: remove the last ide-scsi remnants
authorBorislav Petkov <petkovbb@googlemail.com>
Fri, 2 Jan 2009 15:12:54 +0000 (16:12 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 2 Jan 2009 15:12:54 +0000 (16:12 +0100)
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-atapi.c
drivers/ide/ide-io.c
drivers/ide/ide-ioctls.c
drivers/ide/ide-probe.c
include/linux/ide.h

index 7a04509bf962a00c1699f70201549bf0d047e84e..d412bd2bd7fdbfaa0edf46b8fb7689c6f7b321ee 100644 (file)
@@ -17,8 +17,7 @@
 
 static inline int dev_is_idecd(ide_drive_t *drive)
 {
-       return (drive->media == ide_cdrom || drive->media == ide_optical) &&
-               !(drive->dev_flags & IDE_DFLAG_SCSI);
+       return drive->media == ide_cdrom || drive->media == ide_optical;
 }
 
 /*
index bb3248abf47df78f989d8cfa1827dc8621d46549..1c36a8e83d36000b1585080093e40a28b6681963 100644 (file)
@@ -426,9 +426,6 @@ void ide_map_sg(ide_drive_t *drive, struct request *rq)
        ide_hwif_t *hwif = drive->hwif;
        struct scatterlist *sg = hwif->sg_table;
 
-       if (hwif->sg_mapped)    /* needed by ide-scsi */
-               return;
-
        if (rq->cmd_type != REQ_TYPE_ATA_TASKFILE) {
                hwif->sg_nents = blk_rq_map_sg(drive->queue, rq, sg);
        } else {
index 28232c64c3464becc4eef1319467d5a49dc86e00..1be263eb9c071c3cf7e3b48e0010ec9d4f02f476 100644 (file)
@@ -95,8 +95,7 @@ static int ide_set_nice_ioctl(ide_drive_t *drive, unsigned long arg)
                return -EPERM;
 
        if (((arg >> IDE_NICE_DSC_OVERLAP) & 1) &&
-           (drive->media != ide_tape ||
-            (drive->dev_flags & IDE_DFLAG_SCSI)))
+           (drive->media != ide_tape))
                return -EPERM;
 
        if ((arg >> IDE_NICE_DSC_OVERLAP) & 1)
index 966b74c157737b6eff26286fad8451446f4a7d04..c5adb7b9c5b5eeedad09163c395a03dc64704259 100644 (file)
@@ -1141,8 +1141,6 @@ static struct kobject *ata_probe(dev_t dev, int *part, void *data)
 
        if (drive->media == ide_disk)
                request_module("ide-disk");
-       if (drive->dev_flags & IDE_DFLAG_SCSI)
-               request_module("ide-scsi");
        if (drive->media == ide_cdrom || drive->media == ide_optical)
                request_module("ide-cd");
        if (drive->media == ide_tape)
index 257524ee1af29cc2a150510cf80a3d784599967b..ad57a44929414c6d2f6d522ab2848b0a18c05239 100644 (file)
@@ -559,28 +559,26 @@ enum {
        IDE_DFLAG_NODMA                 = (1 << 16),
        /* powermanagment told us not to do anything, so sleep nicely */
        IDE_DFLAG_BLOCKED               = (1 << 17),
-       /* ide-scsi emulation */
-       IDE_DFLAG_SCSI                  = (1 << 18),
        /* sleeping & sleep field valid */
-       IDE_DFLAG_SLEEPING              = (1 << 19),
-       IDE_DFLAG_POST_RESET            = (1 << 20),
-       IDE_DFLAG_UDMA33_WARNED         = (1 << 21),
-       IDE_DFLAG_LBA48                 = (1 << 22),
+       IDE_DFLAG_SLEEPING              = (1 << 18),
+       IDE_DFLAG_POST_RESET            = (1 << 19),
+       IDE_DFLAG_UDMA33_WARNED         = (1 << 20),
+       IDE_DFLAG_LBA48                 = (1 << 21),
        /* status of write cache */
-       IDE_DFLAG_WCACHE                = (1 << 23),
+       IDE_DFLAG_WCACHE                = (1 << 22),
        /* used for ignoring ATA_DF */
-       IDE_DFLAG_NOWERR                = (1 << 24),
+       IDE_DFLAG_NOWERR                = (1 << 23),
        /* retrying in PIO */
-       IDE_DFLAG_DMA_PIO_RETRY         = (1 << 25),
-       IDE_DFLAG_LBA                   = (1 << 26),
+       IDE_DFLAG_DMA_PIO_RETRY         = (1 << 24),
+       IDE_DFLAG_LBA                   = (1 << 25),
        /* don't unload heads */
-       IDE_DFLAG_NO_UNLOAD             = (1 << 27),
+       IDE_DFLAG_NO_UNLOAD             = (1 << 26),
        /* heads unloaded, please don't reset port */
-       IDE_DFLAG_PARKED                = (1 << 28),
-       IDE_DFLAG_MEDIA_CHANGED         = (1 << 29),
+       IDE_DFLAG_PARKED                = (1 << 27),
+       IDE_DFLAG_MEDIA_CHANGED         = (1 << 28),
        /* write protect */
-       IDE_DFLAG_WP                    = (1 << 30),
-       IDE_DFLAG_FORMAT_IN_PROGRESS    = (1 << 31),
+       IDE_DFLAG_WP                    = (1 << 29),
+       IDE_DFLAG_FORMAT_IN_PROGRESS    = (1 << 30),
 };
 
 struct ide_drive_s {