diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:51 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:51 -0400 |
commit | 38d87234d6c47ca487fc6344100323d5adc6f32c (patch) | |
tree | 5136dc203543954ab8340988c3a18fcec39bf533 /drivers/scsi/libata-core.c | |
parent | a0ab51cefc95cb7756c4914603fea2b1a0f813c5 (diff) |
[PATCH] libata: add dev->ap
Add dev->ap which points back to the port the device belongs to. This
makes it unnecessary to pass @ap for silly reasons (e.g. printks).
Also, this change is necessary to accomodate later PM support which
will introduce ATA link inbetween port and device.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 1 |
1 files changed, 1 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; |