diff options
Diffstat (limited to 'drivers/ata/pata_pcmcia.c')
-rw-r--r-- | drivers/ata/pata_pcmcia.c | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index c05b36c94d51..57efbf05c95f 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c | |||
@@ -132,53 +132,17 @@ static struct scsi_host_template pcmcia_sht = { | |||
132 | }; | 132 | }; |
133 | 133 | ||
134 | static struct ata_port_operations pcmcia_port_ops = { | 134 | static struct ata_port_operations pcmcia_port_ops = { |
135 | .set_mode = pcmcia_set_mode, | 135 | .inherits = &ata_sff_port_ops, |
136 | .tf_load = ata_tf_load, | ||
137 | .tf_read = ata_tf_read, | ||
138 | .check_status = ata_check_status, | ||
139 | .exec_command = ata_exec_command, | ||
140 | .dev_select = ata_std_dev_select, | ||
141 | |||
142 | .freeze = ata_bmdma_freeze, | ||
143 | .thaw = ata_bmdma_thaw, | ||
144 | .error_handler = ata_bmdma_error_handler, | ||
145 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
146 | .cable_detect = ata_cable_40wire, | ||
147 | |||
148 | .qc_prep = ata_qc_prep, | ||
149 | .qc_issue = ata_qc_issue_prot, | ||
150 | |||
151 | .data_xfer = ata_data_xfer_noirq, | 136 | .data_xfer = ata_data_xfer_noirq, |
152 | 137 | .cable_detect = ata_cable_40wire, | |
153 | .irq_clear = ata_noop_irq_clear, | 138 | .set_mode = pcmcia_set_mode, |
154 | .irq_on = ata_irq_on, | ||
155 | |||
156 | .port_start = ata_sff_port_start, | ||
157 | }; | 139 | }; |
158 | 140 | ||
159 | static struct ata_port_operations pcmcia_8bit_port_ops = { | 141 | static struct ata_port_operations pcmcia_8bit_port_ops = { |
160 | .set_mode = pcmcia_set_mode_8bit, | 142 | .inherits = &ata_sff_port_ops, |
161 | .tf_load = ata_tf_load, | ||
162 | .tf_read = ata_tf_read, | ||
163 | .check_status = ata_check_status, | ||
164 | .exec_command = ata_exec_command, | ||
165 | .dev_select = ata_std_dev_select, | ||
166 | |||
167 | .freeze = ata_bmdma_freeze, | ||
168 | .thaw = ata_bmdma_thaw, | ||
169 | .error_handler = ata_bmdma_error_handler, | ||
170 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
171 | .cable_detect = ata_cable_40wire, | ||
172 | |||
173 | .qc_prep = ata_qc_prep, | ||
174 | .qc_issue = ata_qc_issue_prot, | ||
175 | |||
176 | .data_xfer = ata_data_xfer_8bit, | 143 | .data_xfer = ata_data_xfer_8bit, |
177 | 144 | .cable_detect = ata_cable_40wire, | |
178 | .irq_clear = ata_noop_irq_clear, | 145 | .set_mode = pcmcia_set_mode_8bit, |
179 | .irq_on = ata_irq_on, | ||
180 | |||
181 | .port_start = ata_sff_port_start, | ||
182 | }; | 146 | }; |
183 | 147 | ||
184 | #define CS_CHECK(fn, ret) \ | 148 | #define CS_CHECK(fn, ret) \ |