aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 9f6fe1fe7a6c..f00086b10be3 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -753,7 +753,7 @@ typedef struct hwif_s {
753 753
754 unsigned long sata_scr[SATA_NR_PORTS]; 754 unsigned long sata_scr[SATA_NR_PORTS];
755 755
756 ide_drive_t drives[MAX_DRIVES]; /* drive info */ 756 ide_drive_t *devices[MAX_DRIVES];
757 757
758 u8 major; /* our major number */ 758 u8 major; /* our major number */
759 u8 index; /* 0 for ide0; 1 for ide1; ... */ 759 u8 index; /* 0 for ide0; 1 for ide1; ... */
@@ -1600,7 +1600,7 @@ static inline int hwif_to_node(ide_hwif_t *hwif)
1600 1600
1601static inline ide_drive_t *ide_get_pair_dev(ide_drive_t *drive) 1601static inline ide_drive_t *ide_get_pair_dev(ide_drive_t *drive)
1602{ 1602{
1603 ide_drive_t *peer = &drive->hwif->drives[(drive->dn ^ 1) & 1]; 1603 ide_drive_t *peer = drive->hwif->devices[(drive->dn ^ 1) & 1];
1604 1604
1605 return (peer->dev_flags & IDE_DFLAG_PRESENT) ? peer : NULL; 1605 return (peer->dev_flags & IDE_DFLAG_PRESENT) ? peer : NULL;
1606} 1606}