Skip to content

Commit

Permalink
pdc_adma: inherit ata_sff_port_ops
Browse files Browse the repository at this point in the history
With the previous ops standardization, pdc_adma now can inherit
ata_sff_port_ops instead of ata_base_port_ops.  Make the change.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Mark Lord <liml@rtr.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 17, 2008
1 parent ed82f96 commit b0316b1
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions drivers/ata/pdc_adma.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,25 +147,15 @@ static struct scsi_host_template adma_ata_sht = {
};

static struct ata_port_operations adma_ata_ops = {
.inherits = &ata_base_port_ops,

.dev_select = ata_std_dev_select,
.tf_load = ata_tf_load,
.tf_read = ata_tf_read,
.check_status = ata_check_status,
.exec_command = ata_exec_command,
.data_xfer = ata_data_xfer,
.inherits = &ata_sff_port_ops,

.check_atapi_dma = adma_check_atapi_dma,
.qc_prep = adma_qc_prep,
.qc_issue = adma_qc_issue,
.irq_on = ata_irq_on,

.freeze = adma_freeze,
.thaw = adma_thaw,
.prereset = adma_prereset,
.softreset = ata_std_softreset,
.error_handler = ata_bmdma_error_handler,
.post_internal_cmd = ata_bmdma_post_internal_cmd,

.port_start = adma_port_start,
.port_stop = adma_port_stop,
Expand Down

0 comments on commit b0316b1

Please sign in to comment.