X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fide%2Fide-lib.c;h=9fc4cfb2a272bd6b89a112e72158eb6e1d656b9e;hb=9877e7b855dce9494a05f56f8ca6357f0b4b9169;hp=ed426dd0fdd8a6747a744a64607c030ef0b6ed1e;hpb=206855c321adee56db3946ca09a5887cddb9d598;p=linux-2.6-omap-h63xx.git diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index ed426dd0fdd..9fc4cfb2a27 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c @@ -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)