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_oldpiix.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_oldpiix.c')
-rw-r--r-- | drivers/ata/pata_oldpiix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_oldpiix.c b/drivers/ata/pata_oldpiix.c index da68cd19efd6..dea4690340d1 100644 --- a/drivers/ata/pata_oldpiix.c +++ b/drivers/ata/pata_oldpiix.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <linux/ata.h> | 25 | #include <linux/ata.h> |
26 | 26 | ||
27 | #define DRV_NAME "pata_oldpiix" | 27 | #define DRV_NAME "pata_oldpiix" |
28 | #define DRV_VERSION "0.5.4" | 28 | #define DRV_VERSION "0.5.5" |
29 | 29 | ||
30 | /** | 30 | /** |
31 | * oldpiix_pre_reset - probe begin | 31 | * oldpiix_pre_reset - probe begin |
@@ -44,7 +44,6 @@ static int oldpiix_pre_reset(struct ata_port *ap) | |||
44 | 44 | ||
45 | if (!pci_test_config_bits(pdev, &oldpiix_enable_bits[ap->port_no])) | 45 | if (!pci_test_config_bits(pdev, &oldpiix_enable_bits[ap->port_no])) |
46 | return -ENOENT; | 46 | return -ENOENT; |
47 | ap->cbl = ATA_CBL_PATA40; | ||
48 | return ata_std_prereset(ap); | 47 | return ata_std_prereset(ap); |
49 | } | 48 | } |
50 | 49 | ||
@@ -65,7 +64,7 @@ static void oldpiix_pata_error_handler(struct ata_port *ap) | |||
65 | /** | 64 | /** |
66 | * oldpiix_set_piomode - Initialize host controller PATA PIO timings | 65 | * oldpiix_set_piomode - Initialize host controller PATA PIO timings |
67 | * @ap: Port whose timings we are configuring | 66 | * @ap: Port whose timings we are configuring |
68 | * @adev: um | 67 | * @adev: Device whose timings we are configuring |
69 | * | 68 | * |
70 | * Set PIO mode for device, in host controller PCI config space. | 69 | * Set PIO mode for device, in host controller PCI config space. |
71 | * | 70 | * |
@@ -255,6 +254,7 @@ static const struct ata_port_operations oldpiix_pata_ops = { | |||
255 | .thaw = ata_bmdma_thaw, | 254 | .thaw = ata_bmdma_thaw, |
256 | .error_handler = oldpiix_pata_error_handler, | 255 | .error_handler = oldpiix_pata_error_handler, |
257 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | 256 | .post_internal_cmd = ata_bmdma_post_internal_cmd, |
257 | .cable_detect = ata_cable_40wire, | ||
258 | 258 | ||
259 | .bmdma_setup = ata_bmdma_setup, | 259 | .bmdma_setup = ata_bmdma_setup, |
260 | .bmdma_start = ata_bmdma_start, | 260 | .bmdma_start = ata_bmdma_start, |