ide: remove superfluous ->media field from ide_driver_t

Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent c3922048
...@@ -1966,7 +1966,6 @@ static ide_driver_t ide_cdrom_driver = { ...@@ -1966,7 +1966,6 @@ static ide_driver_t ide_cdrom_driver = {
.probe = ide_cd_probe, .probe = ide_cd_probe,
.remove = ide_cd_remove, .remove = ide_cd_remove,
.version = IDECD_VERSION, .version = IDECD_VERSION,
.media = ide_cdrom,
.do_request = ide_cd_do_request, .do_request = ide_cd_do_request,
.end_request = ide_end_request, .end_request = ide_end_request,
.error = __ide_error, .error = __ide_error,
......
...@@ -938,7 +938,6 @@ static ide_driver_t idedisk_driver = { ...@@ -938,7 +938,6 @@ static ide_driver_t idedisk_driver = {
.resume = ide_disk_resume, .resume = ide_disk_resume,
.shutdown = ide_device_shutdown, .shutdown = ide_device_shutdown,
.version = IDEDISK_VERSION, .version = IDEDISK_VERSION,
.media = ide_disk,
.do_request = ide_do_rw_disk, .do_request = ide_do_rw_disk,
.end_request = ide_end_request, .end_request = ide_end_request,
.error = __ide_error, .error = __ide_error,
......
...@@ -673,7 +673,6 @@ static ide_driver_t idefloppy_driver = { ...@@ -673,7 +673,6 @@ static ide_driver_t idefloppy_driver = {
.probe = ide_floppy_probe, .probe = ide_floppy_probe,
.remove = ide_floppy_remove, .remove = ide_floppy_remove,
.version = IDEFLOPPY_VERSION, .version = IDEFLOPPY_VERSION,
.media = ide_floppy,
.do_request = idefloppy_do_request, .do_request = idefloppy_do_request,
.end_request = idefloppy_end_request, .end_request = idefloppy_end_request,
.error = __ide_error, .error = __ide_error,
......
...@@ -2318,7 +2318,6 @@ static ide_driver_t idetape_driver = { ...@@ -2318,7 +2318,6 @@ static ide_driver_t idetape_driver = {
.probe = ide_tape_probe, .probe = ide_tape_probe,
.remove = ide_tape_remove, .remove = ide_tape_remove,
.version = IDETAPE_VERSION, .version = IDETAPE_VERSION,
.media = ide_tape,
.do_request = idetape_do_request, .do_request = idetape_do_request,
.end_request = idetape_end_request, .end_request = idetape_end_request,
.error = __ide_error, .error = __ide_error,
......
...@@ -437,7 +437,6 @@ static ide_driver_t idescsi_driver = { ...@@ -437,7 +437,6 @@ static ide_driver_t idescsi_driver = {
.probe = ide_scsi_probe, .probe = ide_scsi_probe,
.remove = ide_scsi_remove, .remove = ide_scsi_remove,
.version = IDESCSI_VERSION, .version = IDESCSI_VERSION,
.media = ide_scsi,
.do_request = idescsi_do_request, .do_request = idescsi_do_request,
.end_request = idescsi_end_request, .end_request = idescsi_end_request,
.error = idescsi_atapi_error, .error = idescsi_atapi_error,
......
...@@ -1029,7 +1029,6 @@ enum { ...@@ -1029,7 +1029,6 @@ enum {
*/ */
struct ide_driver_s { struct ide_driver_s {
const char *version; const char *version;
u8 media;
ide_startstop_t (*do_request)(ide_drive_t *, struct request *, sector_t); ide_startstop_t (*do_request)(ide_drive_t *, struct request *, sector_t);
int (*end_request)(ide_drive_t *, int, int); int (*end_request)(ide_drive_t *, int, int);
ide_startstop_t (*error)(ide_drive_t *, struct request *rq, u8, u8); ide_startstop_t (*error)(ide_drive_t *, struct request *rq, u8, u8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment