]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - drivers/ata/pata_scc.c
libata: implement and use ops inheritance
[mirror_ubuntu-focal-kernel.git] / drivers / ata / pata_scc.c
index 1833e9ef522ea94e038c1c440b613f1b4d066f68..033d1f3a82deae742e7f6fbee7383d4f100fdb62 100644 (file)
@@ -972,6 +972,8 @@ static struct scsi_host_template scc_sht = {
 };
 
 static const struct ata_port_operations scc_pata_ops = {
+       .inherits               = &ata_bmdma_port_ops,
+
        .set_piomode            = scc_set_piomode,
        .set_dmamode            = scc_set_dmamode,
        .mode_filter            = scc_mode_filter,
@@ -989,12 +991,7 @@ static const struct ata_port_operations scc_pata_ops = {
        .bmdma_status           = scc_bmdma_status,
        .data_xfer              = scc_data_xfer,
 
-       .qc_prep                = ata_qc_prep,
-       .qc_issue               = ata_qc_issue_prot,
-
        .freeze                 = scc_bmdma_freeze,
-       .thaw                   = ata_bmdma_thaw,
-
        .error_handler          = scc_error_handler,
        .post_internal_cmd      = scc_bmdma_stop,