aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ata_generic.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-04-10 19:04:20 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-28 14:16:01 -0400
commiteb4a2c7f03db06dda0370591c958fa5a62ff2ec3 (patch)
tree63933e8f00d363728dfcd9182ed3718dbbf45572 /drivers/ata/ata_generic.c
parent5a5dbd18a7496ed403f6f54bb20c955c65482fa5 (diff)
pata: cable methods
Versus upstream as requested Last of the trivial switches to cable_detect methods. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ata_generic.c')
-rw-r--r--drivers/ata/ata_generic.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c
index d8e79882b880..92a491ddd030 100644
--- a/drivers/ata/ata_generic.c
+++ b/drivers/ata/ata_generic.c
@@ -33,35 +33,6 @@
33 */ 33 */
34 34
35/** 35/**
36 * generic_pre_reset - probe begin
37 * @ap: ATA port
38 *
39 * Set up cable type and use generic probe init
40 */
41
42static int generic_pre_reset(struct ata_port *ap)
43{
44 ap->cbl = ATA_CBL_PATA80;
45 return ata_std_prereset(ap);
46}
47
48
49/**
50 * generic_error_handler - Probe specified port on PATA host controller
51 * @ap: Port to probe
52 * @classes:
53 *
54 * LOCKING:
55 * None (inherited from caller).
56 */
57
58
59static void generic_error_handler(struct ata_port *ap)
60{
61 ata_bmdma_drive_eh(ap, generic_pre_reset, ata_std_softreset, NULL, ata_std_postreset);
62}
63
64/**
65 * generic_set_mode - mode setting 36 * generic_set_mode - mode setting
66 * @ap: interface to set up 37 * @ap: interface to set up
67 * @unused: returned device on error 38 * @unused: returned device on error
@@ -144,8 +115,9 @@ static struct ata_port_operations generic_port_ops = {
144 115
145 .freeze = ata_bmdma_freeze, 116 .freeze = ata_bmdma_freeze,
146 .thaw = ata_bmdma_thaw, 117 .thaw = ata_bmdma_thaw,
147 .error_handler = generic_error_handler, 118 .error_handler = ata_bmdma_error_handler,
148 .post_internal_cmd = ata_bmdma_post_internal_cmd, 119 .post_internal_cmd = ata_bmdma_post_internal_cmd,
120 .cable_detect = ata_cable_unknown,
149 121
150 .qc_prep = ata_qc_prep, 122 .qc_prep = ata_qc_prep,
151 .qc_issue = ata_qc_issue_prot, 123 .qc_issue = ata_qc_issue_prot,