aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-04-07 09:47:21 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-17 15:44:24 -0400
commitc9f75b04ed5ed65a058d18a8a8dda50632a96de8 (patch)
treee0100eae3b10006a8618ddb32bdf971e20db0dd8 /drivers/ata/libata-core.c
parent520d06f92b32d7abe5127d7cc46a819db0f384e6 (diff)
libata: kill ata_noop_dev_select()
Now that SFF assumptions are separated out from non-SFF reset sequence, port_ops->sff_dev_select() is no longer necessary for non-SFF controllers. Kill ata_noop_dev_select() and ->sff_dev_select initialization from base and other non-SFF port_ops. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index e8598eeeec39..f23f50af551c 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -84,7 +84,6 @@ const struct ata_port_operations sata_port_ops = {
84 84
85 .qc_defer = ata_std_qc_defer, 85 .qc_defer = ata_std_qc_defer,
86 .hardreset = sata_std_hardreset, 86 .hardreset = sata_std_hardreset,
87 .sff_dev_select = ata_noop_dev_select,
88}; 87};
89 88
90const struct ata_port_operations sata_pmp_port_ops = { 89const struct ata_port_operations sata_pmp_port_ops = {
@@ -1432,22 +1431,6 @@ static int ata_hpa_resize(struct ata_device *dev)
1432} 1431}
1433 1432
1434/** 1433/**
1435 * ata_noop_dev_select - Select device 0/1 on ATA bus
1436 * @ap: ATA channel to manipulate
1437 * @device: ATA device (numbered from zero) to select
1438 *
1439 * This function performs no actual function.
1440 *
1441 * May be used as the dev_select() entry in ata_port_operations.
1442 *
1443 * LOCKING:
1444 * caller.
1445 */
1446void ata_noop_dev_select(struct ata_port *ap, unsigned int device)
1447{
1448}
1449
1450/**
1451 * ata_dump_id - IDENTIFY DEVICE info debugging output 1434 * ata_dump_id - IDENTIFY DEVICE info debugging output
1452 * @id: IDENTIFY DEVICE page to dump 1435 * @id: IDENTIFY DEVICE page to dump
1453 * 1436 *
@@ -6193,7 +6176,6 @@ static unsigned int ata_dummy_qc_issue(struct ata_queued_cmd *qc)
6193struct ata_port_operations ata_dummy_port_ops = { 6176struct ata_port_operations ata_dummy_port_ops = {
6194 .sff_check_status = ata_dummy_check_status, 6177 .sff_check_status = ata_dummy_check_status,
6195 .sff_check_altstatus = ata_dummy_check_status, 6178 .sff_check_altstatus = ata_dummy_check_status,
6196 .sff_dev_select = ata_noop_dev_select,
6197 .qc_prep = ata_noop_qc_prep, 6179 .qc_prep = ata_noop_qc_prep,
6198 .qc_issue = ata_dummy_qc_issue, 6180 .qc_issue = ata_dummy_qc_issue,
6199 .freeze = ata_dummy_noret, 6181 .freeze = ata_dummy_noret,
@@ -6234,7 +6216,6 @@ EXPORT_SYMBOL_GPL(ata_host_detach);
6234EXPORT_SYMBOL_GPL(ata_sg_init); 6216EXPORT_SYMBOL_GPL(ata_sg_init);
6235EXPORT_SYMBOL_GPL(ata_qc_complete); 6217EXPORT_SYMBOL_GPL(ata_qc_complete);
6236EXPORT_SYMBOL_GPL(ata_qc_complete_multiple); 6218EXPORT_SYMBOL_GPL(ata_qc_complete_multiple);
6237EXPORT_SYMBOL_GPL(ata_noop_dev_select);
6238EXPORT_SYMBOL_GPL(sata_print_link_status); 6219EXPORT_SYMBOL_GPL(sata_print_link_status);
6239EXPORT_SYMBOL_GPL(atapi_cmd_type); 6220EXPORT_SYMBOL_GPL(atapi_cmd_type);
6240EXPORT_SYMBOL_GPL(ata_tf_to_fis); 6221EXPORT_SYMBOL_GPL(ata_tf_to_fis);