aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-02-20 12:12:11 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-02-20 18:56:59 -0500
commitba70d0614728892b86b2be2f7eae0c696b436461 (patch)
treefb62902d9563b5376c4805918a8a1c092b481ead
parent49016aca2e54c64f08c31d5512dfd8d35f934c58 (diff)
[PATCH] libata: kill ata_dev_reread_id()
Kill now-unused ata_dev_reread_id(). Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
-rw-r--r--drivers/scsi/libata-core.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index d0a26e9553a1..ab3257a6b860 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -61,7 +61,6 @@
61 61
62#include "libata.h" 62#include "libata.h"
63 63
64static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev);
65static unsigned int ata_dev_init_params(struct ata_port *ap, 64static unsigned int ata_dev_init_params(struct ata_port *ap,
66 struct ata_device *dev); 65 struct ata_device *dev);
67static void ata_set_mode(struct ata_port *ap); 66static void ata_set_mode(struct ata_port *ap);
@@ -2535,47 +2534,6 @@ static void ata_dev_set_xfermode(struct ata_port *ap, struct ata_device *dev)
2535} 2534}
2536 2535
2537/** 2536/**
2538 * ata_dev_reread_id - Reread the device identify device info
2539 * @ap: port where the device is
2540 * @dev: device to reread the identify device info
2541 *
2542 * LOCKING:
2543 */
2544
2545static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev)
2546{
2547 struct ata_taskfile tf;
2548
2549 ata_tf_init(ap, &tf, dev->devno);
2550
2551 if (dev->class == ATA_DEV_ATA) {
2552 tf.command = ATA_CMD_ID_ATA;
2553 DPRINTK("do ATA identify\n");
2554 } else {
2555 tf.command = ATA_CMD_ID_ATAPI;
2556 DPRINTK("do ATAPI identify\n");
2557 }
2558
2559 tf.flags |= ATA_TFLAG_DEVICE;
2560 tf.protocol = ATA_PROT_PIO;
2561
2562 if (ata_exec_internal(ap, dev, &tf, DMA_FROM_DEVICE,
2563 dev->id, sizeof(dev->id)))
2564 goto err_out;
2565
2566 swap_buf_le16(dev->id, ATA_ID_WORDS);
2567
2568 ata_dump_id(dev->id);
2569
2570 DPRINTK("EXIT\n");
2571
2572 return;
2573err_out:
2574 printk(KERN_ERR "ata%u: failed to reread ID, disabled\n", ap->id);
2575 ata_port_disable(ap);
2576}
2577
2578/**
2579 * ata_dev_init_params - Issue INIT DEV PARAMS command 2537 * ata_dev_init_params - Issue INIT DEV PARAMS command
2580 * @ap: Port associated with device @dev 2538 * @ap: Port associated with device @dev
2581 * @dev: Device to which command will be sent 2539 * @dev: Device to which command will be sent