aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_rz1000.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-29 13:48:21 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-29 13:48:21 -0400
commitf73b0a08eae0e28c50db5dd5ab8245546918bfb6 (patch)
treeeddc8c063acc7c70a975a0dadf26655159704b22 /drivers/ata/pata_rz1000.c
parent6b06d2cc6d52830e3e0c001006b26255f47184dd (diff)
parent225036314e768bbfe8331ea9b0e91ca101afe427 (diff)
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: (86 commits) SPIN_LOCK_UNLOCKED cleanup in drivers/ata/pata_winbond.c drivers/ata/pata_cmd640.c: fix build with CONFIG_PM=n pata_hpt37x: Further small fixes pata_hpt3x2n: Add HPT371N support and other bits ata: printk warning fixes libata: separate ATA_EHI_DID_RESET into DID_SOFTRESET and DID_HARDRESET ahci: consolidate common port flags ata_timing: ensure t->cycle is always correct libata: add missing call to ->cable_detect() in new EH path pata_amd: remove contamination added during cable_detect conversion libata: Handle drives that require a spin-up command before first access libata: HPA support libata: kill probe_ent and related helpers libata: convert the remaining PATA drivers to new init model libata: convert the remaining SATA drivers to new init model libata: convert ata_pci_init_native_mode() users to new init model libata: convert drivers with combined SATA/PATA ports to new init model libata: add init helpers including ata_pci_prepare_native_host() libata: convert native PCI host handling to new init model libata: convert legacy PCI host handling to new init model ...
Diffstat (limited to 'drivers/ata/pata_rz1000.c')
-rw-r--r--drivers/ata/pata_rz1000.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c
index f522daa2a6aa..85c45290eeee 100644
--- a/drivers/ata/pata_rz1000.c
+++ b/drivers/ata/pata_rz1000.c
@@ -25,31 +25,6 @@
25 25
26 26
27/** 27/**
28 * rz1000_prereset - probe begin
29 * @ap: ATA port
30 *
31 * Set up cable type and use generics
32 */
33
34static int rz1000_prereset(struct ata_port *ap)
35{
36 ap->cbl = ATA_CBL_PATA40;
37 return ata_std_prereset(ap);
38}
39
40/**
41 * rz1000_error_handler - probe reset
42 * @ap: ATA port
43 *
44 * Perform the ATA standard reset sequence
45 */
46
47static void rz1000_error_handler(struct ata_port *ap)
48{
49 ata_bmdma_drive_eh(ap, rz1000_prereset, ata_std_softreset, NULL, ata_std_postreset);
50}
51
52/**
53 * rz1000_set_mode - mode setting function 28 * rz1000_set_mode - mode setting function
54 * @ap: ATA interface 29 * @ap: ATA interface
55 * @unused: returned device on set_mode failure 30 * @unused: returned device on set_mode failure
@@ -122,8 +97,9 @@ static struct ata_port_operations rz1000_port_ops = {
122 97
123 .freeze = ata_bmdma_freeze, 98 .freeze = ata_bmdma_freeze,
124 .thaw = ata_bmdma_thaw, 99 .thaw = ata_bmdma_thaw,
125 .error_handler = rz1000_error_handler, 100 .error_handler = ata_bmdma_error_handler,
126 .post_internal_cmd = ata_bmdma_post_internal_cmd, 101 .post_internal_cmd = ata_bmdma_post_internal_cmd,
102 .cable_detect = ata_cable_40wire,
127 103
128 .irq_handler = ata_interrupt, 104 .irq_handler = ata_interrupt,
129 .irq_clear = ata_bmdma_irq_clear, 105 .irq_clear = ata_bmdma_irq_clear,