ide: remove superfluous ->media field from ide_driver_t
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 13 Oct 2008 19:39:37 +0000 (21:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 13 Oct 2008 19:39:37 +0000 (21:39 +0200)
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-cd.c
drivers/ide/ide-disk.c
drivers/ide/ide-floppy.c
drivers/ide/ide-tape.c
drivers/scsi/ide-scsi.c
include/linux/ide.h

index ea7cd4e0b1570b6f65108960578da33944de41dc..84bc2413312ad56fa893f6f3a1bc557f1a44d93c 100644 (file)
@@ -1966,7 +1966,6 @@ static ide_driver_t ide_cdrom_driver = {
        .probe                  = ide_cd_probe,
        .remove                 = ide_cd_remove,
        .version                = IDECD_VERSION,
-       .media                  = ide_cdrom,
        .do_request             = ide_cd_do_request,
        .end_request            = ide_end_request,
        .error                  = __ide_error,
index 7ee2c9d2e5c2f67a77616c6c8cce26c8d1057159..c35de54dfc228b0de5aadb338daed99e9cf34b83 100644 (file)
@@ -938,7 +938,6 @@ static ide_driver_t idedisk_driver = {
        .resume                 = ide_disk_resume,
        .shutdown               = ide_device_shutdown,
        .version                = IDEDISK_VERSION,
-       .media                  = ide_disk,
        .do_request             = ide_do_rw_disk,
        .end_request            = ide_end_request,
        .error                  = __ide_error,
index cdfadb01d07f3f9dd814bd5b8d71f29db5103a68..8c2b00941bd8b7da7dd1d2893c7c1fb75a205434 100644 (file)
@@ -673,7 +673,6 @@ static ide_driver_t idefloppy_driver = {
        .probe                  = ide_floppy_probe,
        .remove                 = ide_floppy_remove,
        .version                = IDEFLOPPY_VERSION,
-       .media                  = ide_floppy,
        .do_request             = idefloppy_do_request,
        .end_request            = idefloppy_end_request,
        .error                  = __ide_error,
index 103f9f161716995179850a6494ad7cd7ad7a0eab..27665e3a41cbf8357c2eeaa75e9cc4ea0be2ad2f 100644 (file)
@@ -2318,7 +2318,6 @@ static ide_driver_t idetape_driver = {
        .probe                  = ide_tape_probe,
        .remove                 = ide_tape_remove,
        .version                = IDETAPE_VERSION,
-       .media                  = ide_tape,
        .do_request             = idetape_do_request,
        .end_request            = idetape_end_request,
        .error                  = __ide_error,
index 67e9ed95f669077f5ca99f94b15c57526e417bd2..c2995972052ca8cd1be3b56e0cdbe9ab56565212 100644 (file)
@@ -437,7 +437,6 @@ static ide_driver_t idescsi_driver = {
        .probe                  = ide_scsi_probe,
        .remove                 = ide_scsi_remove,
        .version                = IDESCSI_VERSION,
-       .media                  = ide_scsi,
        .do_request             = idescsi_do_request,
        .end_request            = idescsi_end_request,
        .error                  = idescsi_atapi_error,
index 230bd9dd851de1c4e00b1b58885492893be143d7..7fd1ec135510d37a7c7f248afd1505bbbe98e621 100644 (file)
@@ -1029,7 +1029,6 @@ enum {
  */
 struct ide_driver_s {
        const char                      *version;
-       u8                              media;
        ide_startstop_t (*do_request)(ide_drive_t *, struct request *, sector_t);
        int             (*end_request)(ide_drive_t *, int, int);
        ide_startstop_t (*error)(ide_drive_t *, struct request *rq, u8, u8);