]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-lib.c
ide: add device flags
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-lib.c
index ed426dd0fdd8a6747a744a64607c030ef0b6ed1e..9fc4cfb2a272bd6b89a112e72158eb6e1d656b9e 100644 (file)
@@ -317,7 +317,7 @@ static void ide_dump_sector(ide_drive_t *drive)
 {
        ide_task_t task;
        struct ide_taskfile *tf = &task.tf;
-       int lba48 = (drive->addressing == 1) ? 1 : 0;
+       u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48);
 
        memset(&task, 0, sizeof(task));
        if (lba48)