aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libata-core.c1
-rw-r--r--include/linux/libata.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 56f0af208345..31b65e0da0b1 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -4749,6 +4749,7 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
4749 4749
4750 for (i = 0; i < ATA_MAX_DEVICES; i++) { 4750 for (i = 0; i < ATA_MAX_DEVICES; i++) {
4751 struct ata_device *dev = &ap->device[i]; 4751 struct ata_device *dev = &ap->device[i];
4752 dev->ap = ap;
4752 dev->devno = i; 4753 dev->devno = i;
4753 dev->pio_mask = UINT_MAX; 4754 dev->pio_mask = UINT_MAX;
4754 dev->mwdma_mask = UINT_MAX; 4755 dev->mwdma_mask = UINT_MAX;
diff --git a/include/linux/libata.h b/include/linux/libata.h
index cd467cd54473..ac2d2cc78b10 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -358,6 +358,7 @@ struct ata_host_stats {
358}; 358};
359 359
360struct ata_device { 360struct ata_device {
361 struct ata_port *ap;
361 u64 n_sectors; /* size of device, if ATA */ 362 u64 n_sectors; /* size of device, if ATA */
362 unsigned long flags; /* ATA_DFLAG_xxx */ 363 unsigned long flags; /* ATA_DFLAG_xxx */
363 unsigned int class; /* ATA_DEV_xxx */ 364 unsigned int class; /* ATA_DEV_xxx */