]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-atapi.c
ide: remove IDE_AFLAG_NO_DOORLOCKING
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-atapi.c
index 2e305714c209e8d9573a2aee1f490ece032b2580..4e58b9e7a58a01592eb3e130aee781a41e4891d1 100644 (file)
@@ -191,7 +191,7 @@ int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on)
 {
        struct ide_atapi_pc pc;
 
-       if (drive->atapi_flags & IDE_AFLAG_NO_DOORLOCK)
+       if ((drive->dev_flags & IDE_DFLAG_DOORLOCKING) == 0)
                return 0;
 
        ide_init_pc(&pc);