aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_legacy.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-08-16 03:17:03 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-12 14:55:35 -0400
commitac8869d56d95a8c74403e6f7a47d74fcfcc1b988 (patch)
tree2f812aff4c6e559f3c093f9933960d09631375c8 /drivers/ata/pata_legacy.c
parent7d73a363dea186a864f6295bbe842da8044d42cd (diff)
[libata] Remove ->port_disable() hook
It was always set to ata_port_disable(). Removed the hook, and replaced the very few ap->ops->port_disable() callsites with direct calls to ata_port_disable(). Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_legacy.c')
-rw-r--r--drivers/ata/pata_legacy.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c
index 6529d34f0370..6cae26f4d272 100644
--- a/drivers/ata/pata_legacy.c
+++ b/drivers/ata/pata_legacy.c
@@ -150,7 +150,6 @@ static struct scsi_host_template legacy_sht = {
150 */ 150 */
151 151
152static struct ata_port_operations simple_port_ops = { 152static struct ata_port_operations simple_port_ops = {
153 .port_disable = ata_port_disable,
154 .tf_load = ata_tf_load, 153 .tf_load = ata_tf_load,
155 .tf_read = ata_tf_read, 154 .tf_read = ata_tf_read,
156 .check_status = ata_check_status, 155 .check_status = ata_check_status,
@@ -178,7 +177,6 @@ static struct ata_port_operations simple_port_ops = {
178static struct ata_port_operations legacy_port_ops = { 177static struct ata_port_operations legacy_port_ops = {
179 .set_mode = legacy_set_mode, 178 .set_mode = legacy_set_mode,
180 179
181 .port_disable = ata_port_disable,
182 .tf_load = ata_tf_load, 180 .tf_load = ata_tf_load,
183 .tf_read = ata_tf_read, 181 .tf_read = ata_tf_read,
184 .check_status = ata_check_status, 182 .check_status = ata_check_status,
@@ -293,7 +291,6 @@ static void pdc_data_xfer_vlb(struct ata_device *adev, unsigned char *buf, unsig
293static struct ata_port_operations pdc20230_port_ops = { 291static struct ata_port_operations pdc20230_port_ops = {
294 .set_piomode = pdc20230_set_piomode, 292 .set_piomode = pdc20230_set_piomode,
295 293
296 .port_disable = ata_port_disable,
297 .tf_load = ata_tf_load, 294 .tf_load = ata_tf_load,
298 .tf_read = ata_tf_read, 295 .tf_read = ata_tf_read,
299 .check_status = ata_check_status, 296 .check_status = ata_check_status,
@@ -348,7 +345,6 @@ static void ht6560a_set_piomode(struct ata_port *ap, struct ata_device *adev)
348static struct ata_port_operations ht6560a_port_ops = { 345static struct ata_port_operations ht6560a_port_ops = {
349 .set_piomode = ht6560a_set_piomode, 346 .set_piomode = ht6560a_set_piomode,
350 347
351 .port_disable = ata_port_disable,
352 .tf_load = ata_tf_load, 348 .tf_load = ata_tf_load,
353 .tf_read = ata_tf_read, 349 .tf_read = ata_tf_read,
354 .check_status = ata_check_status, 350 .check_status = ata_check_status,
@@ -414,7 +410,6 @@ static void ht6560b_set_piomode(struct ata_port *ap, struct ata_device *adev)
414static struct ata_port_operations ht6560b_port_ops = { 410static struct ata_port_operations ht6560b_port_ops = {
415 .set_piomode = ht6560b_set_piomode, 411 .set_piomode = ht6560b_set_piomode,
416 412
417 .port_disable = ata_port_disable,
418 .tf_load = ata_tf_load, 413 .tf_load = ata_tf_load,
419 .tf_read = ata_tf_read, 414 .tf_read = ata_tf_read,
420 .check_status = ata_check_status, 415 .check_status = ata_check_status,
@@ -535,7 +530,6 @@ static void opti82c611a_set_piomode(struct ata_port *ap, struct ata_device *adev
535static struct ata_port_operations opti82c611a_port_ops = { 530static struct ata_port_operations opti82c611a_port_ops = {
536 .set_piomode = opti82c611a_set_piomode, 531 .set_piomode = opti82c611a_set_piomode,
537 532
538 .port_disable = ata_port_disable,
539 .tf_load = ata_tf_load, 533 .tf_load = ata_tf_load,
540 .tf_read = ata_tf_read, 534 .tf_read = ata_tf_read,
541 .check_status = ata_check_status, 535 .check_status = ata_check_status,
@@ -668,7 +662,6 @@ static unsigned int opti82c46x_qc_issue_prot(struct ata_queued_cmd *qc)
668static struct ata_port_operations opti82c46x_port_ops = { 662static struct ata_port_operations opti82c46x_port_ops = {
669 .set_piomode = opti82c46x_set_piomode, 663 .set_piomode = opti82c46x_set_piomode,
670 664
671 .port_disable = ata_port_disable,
672 .tf_load = ata_tf_load, 665 .tf_load = ata_tf_load,
673 .tf_read = ata_tf_read, 666 .tf_read = ata_tf_read,
674 .check_status = ata_check_status, 667 .check_status = ata_check_status,