From: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx> Subject: [PATCH] ide: add drive->devno field Add devno field to ide_drive_t matching devno field used in struct ata_device. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx> --- drivers/ide/ide-probe.c | 1 + include/linux/ide.h | 1 + 2 files changed, 2 insertions(+) Index: b/drivers/ide/ide-probe.c =================================================================== --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -1033,6 +1033,7 @@ static void ide_port_init_devices(ide_hw ide_port_for_each_dev(i, drive, hwif) { drive->dn = i + hwif->channel * 2; + drive->devno = i; if (hwif->host_flags & IDE_HFLAG_IO_32BIT) drive->io_32bit = 1; Index: b/include/linux/ide.h =================================================================== --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -518,6 +518,7 @@ struct ide_drive_s { u8 pio_mode; /* for ->set_pio_mode _only_ */ u8 dma_mode; /* for ->dma_pio_mode _only_ */ u8 dn; /* now wide spread use */ + u8 devno; /* 0 or 1 */ u8 acoustic; /* acoustic management */ u8 media; /* disk, cdrom, tape, floppy, ... */ u8 ready_stat; /* min status value for drive ready */ -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html