diff options
Diffstat (limited to 'drivers/scsi/sata_sil24.c')
-rw-r--r-- | drivers/scsi/sata_sil24.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/sata_sil24.c b/drivers/scsi/sata_sil24.c index 228a7fabffff..a0e35a262156 100644 --- a/drivers/scsi/sata_sil24.c +++ b/drivers/scsi/sata_sil24.c | |||
@@ -285,7 +285,6 @@ static struct scsi_host_template sil24_sht = { | |||
285 | .can_queue = ATA_DEF_QUEUE, | 285 | .can_queue = ATA_DEF_QUEUE, |
286 | .this_id = ATA_SHT_THIS_ID, | 286 | .this_id = ATA_SHT_THIS_ID, |
287 | .sg_tablesize = LIBATA_MAX_PRD, | 287 | .sg_tablesize = LIBATA_MAX_PRD, |
288 | .max_sectors = ATA_MAX_SECTORS, | ||
289 | .cmd_per_lun = ATA_SHT_CMD_PER_LUN, | 288 | .cmd_per_lun = ATA_SHT_CMD_PER_LUN, |
290 | .emulated = ATA_SHT_EMULATED, | 289 | .emulated = ATA_SHT_EMULATED, |
291 | .use_clustering = ATA_SHT_USE_CLUSTERING, | 290 | .use_clustering = ATA_SHT_USE_CLUSTERING, |
@@ -371,7 +370,7 @@ static void sil24_dev_config(struct ata_port *ap, struct ata_device *dev) | |||
371 | { | 370 | { |
372 | void __iomem *port = (void __iomem *)ap->ioaddr.cmd_addr; | 371 | void __iomem *port = (void __iomem *)ap->ioaddr.cmd_addr; |
373 | 372 | ||
374 | if (ap->cdb_len == 16) | 373 | if (dev->cdb_len == 16) |
375 | writel(PORT_CS_CDB16, port + PORT_CTRL_STAT); | 374 | writel(PORT_CS_CDB16, port + PORT_CTRL_STAT); |
376 | else | 375 | else |
377 | writel(PORT_CS_CDB16, port + PORT_CTRL_CLR); | 376 | writel(PORT_CS_CDB16, port + PORT_CTRL_CLR); |
@@ -543,7 +542,7 @@ static void sil24_qc_prep(struct ata_queued_cmd *qc) | |||
543 | prb = &cb->atapi.prb; | 542 | prb = &cb->atapi.prb; |
544 | sge = cb->atapi.sge; | 543 | sge = cb->atapi.sge; |
545 | memset(cb->atapi.cdb, 0, 32); | 544 | memset(cb->atapi.cdb, 0, 32); |
546 | memcpy(cb->atapi.cdb, qc->cdb, ap->cdb_len); | 545 | memcpy(cb->atapi.cdb, qc->cdb, qc->dev->cdb_len); |
547 | 546 | ||
548 | if (qc->tf.protocol != ATA_PROT_ATAPI_NODATA) { | 547 | if (qc->tf.protocol != ATA_PROT_ATAPI_NODATA) { |
549 | if (qc->tf.flags & ATA_TFLAG_WRITE) | 548 | if (qc->tf.flags & ATA_TFLAG_WRITE) |