]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-cd.c
ide: remove needless drive->present checks from device drivers
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-cd.c
index accb53b85ba7edca91ba5f31fb3cee99c78aeaac..607af5de16f8ab60bc3c4b502b05343570a79635 100644 (file)
@@ -2109,10 +2109,10 @@ static int ide_cd_probe(ide_drive_t *drive)
 
        if (!strstr("ide-cdrom", drive->driver_req))
                goto failed;
-       if (!drive->present)
-               goto failed;
+
        if (drive->media != ide_cdrom && drive->media != ide_optical)
                goto failed;
+
        /* skip drives that we were told to ignore */
        if (ignore != NULL) {
                if (strstr(ignore, drive->name)) {