aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_ns87410.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_ns87410.c')
-rw-r--r--drivers/ata/pata_ns87410.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c
index 4d2eefee7387..76d2455bc453 100644
--- a/drivers/ata/pata_ns87410.c
+++ b/drivers/ata/pata_ns87410.c
@@ -50,7 +50,7 @@ static int ns87410_pre_reset(struct ata_link *link, unsigned long deadline)
50 if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) 50 if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no]))
51 return -ENOENT; 51 return -ENOENT;
52 52
53 return ata_std_prereset(link, deadline); 53 return ata_sff_prereset(link, deadline);
54} 54}
55 55
56/** 56/**
@@ -105,7 +105,7 @@ static void ns87410_set_piomode(struct ata_port *ap, struct ata_device *adev)
105} 105}
106 106
107/** 107/**
108 * ns87410_qc_issue_prot - command issue 108 * ns87410_qc_issue - command issue
109 * @qc: command pending 109 * @qc: command pending
110 * 110 *
111 * Called when the libata layer is about to issue a command. We wrap 111 * Called when the libata layer is about to issue a command. We wrap
@@ -113,7 +113,7 @@ static void ns87410_set_piomode(struct ata_port *ap, struct ata_device *adev)
113 * necessary. 113 * necessary.
114 */ 114 */
115 115
116static unsigned int ns87410_qc_issue_prot(struct ata_queued_cmd *qc) 116static unsigned int ns87410_qc_issue(struct ata_queued_cmd *qc)
117{ 117{
118 struct ata_port *ap = qc->ap; 118 struct ata_port *ap = qc->ap;
119 struct ata_device *adev = qc->dev; 119 struct ata_device *adev = qc->dev;
@@ -126,7 +126,7 @@ static unsigned int ns87410_qc_issue_prot(struct ata_queued_cmd *qc)
126 if (adev->pio_mode && adev != ap->private_data) 126 if (adev->pio_mode && adev != ap->private_data)
127 ns87410_set_piomode(ap, adev); 127 ns87410_set_piomode(ap, adev);
128 128
129 return ata_qc_issue_prot(qc); 129 return ata_sff_qc_issue(qc);
130} 130}
131 131
132static struct scsi_host_template ns87410_sht = { 132static struct scsi_host_template ns87410_sht = {
@@ -135,7 +135,7 @@ static struct scsi_host_template ns87410_sht = {
135 135
136static struct ata_port_operations ns87410_port_ops = { 136static struct ata_port_operations ns87410_port_ops = {
137 .inherits = &ata_sff_port_ops, 137 .inherits = &ata_sff_port_ops,
138 .qc_issue = ns87410_qc_issue_prot, 138 .qc_issue = ns87410_qc_issue,
139 .cable_detect = ata_cable_40wire, 139 .cable_detect = ata_cable_40wire,
140 .set_piomode = ns87410_set_piomode, 140 .set_piomode = ns87410_set_piomode,
141 .prereset = ns87410_pre_reset, 141 .prereset = ns87410_pre_reset,
@@ -149,7 +149,7 @@ static int ns87410_init_one(struct pci_dev *dev, const struct pci_device_id *id)
149 .port_ops = &ns87410_port_ops 149 .port_ops = &ns87410_port_ops
150 }; 150 };
151 const struct ata_port_info *ppi[] = { &info, NULL }; 151 const struct ata_port_info *ppi[] = { &info, NULL };
152 return ata_pci_init_one(dev, ppi, &ns87410_sht, NULL); 152 return ata_pci_sff_init_one(dev, ppi, &ns87410_sht, NULL);
153} 153}
154 154
155static const struct pci_device_id ns87410[] = { 155static const struct pci_device_id ns87410[] = {