diff options
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r-- | drivers/scsi/ahci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 98ce6bb62ff8..72bdd434159e 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c | |||
@@ -507,9 +507,8 @@ static unsigned int ahci_dev_classify(struct ata_port *ap) | |||
507 | return ata_dev_classify(&tf); | 507 | return ata_dev_classify(&tf); |
508 | } | 508 | } |
509 | 509 | ||
510 | static void ahci_fill_cmd_slot(struct ata_port *ap, u32 opts) | 510 | static void ahci_fill_cmd_slot(struct ahci_port_priv *pp, u32 opts) |
511 | { | 511 | { |
512 | struct ahci_port_priv *pp = ap->private_data; | ||
513 | pp->cmd_slot[0].opts = cpu_to_le32(opts); | 512 | pp->cmd_slot[0].opts = cpu_to_le32(opts); |
514 | pp->cmd_slot[0].status = 0; | 513 | pp->cmd_slot[0].status = 0; |
515 | pp->cmd_slot[0].tbl_addr = cpu_to_le32(pp->cmd_tbl_dma & 0xffffffff); | 514 | pp->cmd_slot[0].tbl_addr = cpu_to_le32(pp->cmd_tbl_dma & 0xffffffff); |
@@ -622,7 +621,7 @@ static void ahci_qc_prep(struct ata_queued_cmd *qc) | |||
622 | if (is_atapi) | 621 | if (is_atapi) |
623 | opts |= AHCI_CMD_ATAPI; | 622 | opts |= AHCI_CMD_ATAPI; |
624 | 623 | ||
625 | ahci_fill_cmd_slot(ap, opts); | 624 | ahci_fill_cmd_slot(pp, opts); |
626 | } | 625 | } |
627 | 626 | ||
628 | static void ahci_restart_port(struct ata_port *ap, u32 irq_stat) | 627 | static void ahci_restart_port(struct ata_port *ap, u32 irq_stat) |