diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-03-09 07:24:15 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 14:15:56 -0400 |
commit | a0fcdc0259e98d1c16d96baea9ba8a8603e41791 (patch) | |
tree | 568c6a99b5e38486c84b5145ac2e3719b8c62720 /drivers/ata/pata_ns87410.c | |
parent | 6a3d586d8e8a50e4cfd7f8c36d82a53c5614e05b (diff) |
[libata] Update several PATA drivers for new ->cable_detect hook
All patches authored and signed-off-by Alan Cox, sent on Mar 7, 2007.
I merely combined them all into a single patch.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_ns87410.c')
-rw-r--r-- | drivers/ata/pata_ns87410.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c index 9944a28daa9c..078aeda9cf8d 100644 --- a/drivers/ata/pata_ns87410.c +++ b/drivers/ata/pata_ns87410.c | |||
@@ -28,13 +28,13 @@ | |||
28 | #include <linux/libata.h> | 28 | #include <linux/libata.h> |
29 | 29 | ||
30 | #define DRV_NAME "pata_ns87410" | 30 | #define DRV_NAME "pata_ns87410" |
31 | #define DRV_VERSION "0.4.3" | 31 | #define DRV_VERSION "0.4.6" |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * ns87410_pre_reset - probe begin | 34 | * ns87410_pre_reset - probe begin |
35 | * @ap: ATA port | 35 | * @ap: ATA port |
36 | * | 36 | * |
37 | * Set up cable type and use generic probe init | 37 | * Check enabled ports |
38 | */ | 38 | */ |
39 | 39 | ||
40 | static int ns87410_pre_reset(struct ata_port *ap) | 40 | static int ns87410_pre_reset(struct ata_port *ap) |
@@ -47,7 +47,6 @@ static int ns87410_pre_reset(struct ata_port *ap) | |||
47 | 47 | ||
48 | if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) | 48 | if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) |
49 | return -ENOENT; | 49 | return -ENOENT; |
50 | ap->cbl = ATA_CBL_PATA40; | ||
51 | return ata_std_prereset(ap); | 50 | return ata_std_prereset(ap); |
52 | } | 51 | } |
53 | 52 | ||
@@ -177,6 +176,7 @@ static struct ata_port_operations ns87410_port_ops = { | |||
177 | .thaw = ata_bmdma_thaw, | 176 | .thaw = ata_bmdma_thaw, |
178 | .error_handler = ns87410_error_handler, | 177 | .error_handler = ns87410_error_handler, |
179 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | 178 | .post_internal_cmd = ata_bmdma_post_internal_cmd, |
179 | .cable_detect = ata_cable_40wire, | ||
180 | 180 | ||
181 | .qc_prep = ata_qc_prep, | 181 | .qc_prep = ata_qc_prep, |
182 | .qc_issue = ns87410_qc_issue_prot, | 182 | .qc_issue = ns87410_qc_issue_prot, |