diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-12 19:16:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-12 19:16:41 -0400 |
commit | ab9c232286c2b77be78441c2d8396500b045777e (patch) | |
tree | 17570e159e4fb1ba36f1c363a7abef9b55909275 /drivers/ata/pata_rz1000.c | |
parent | 8bd0983e05757e5c1f7a3342cd09badae93c167d (diff) | |
parent | 2855568b1ee4f58ef2c0a13ddfceb4b0b216b7ed (diff) |
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (119 commits)
[libata] struct pci_dev related cleanups
libata: use ata_exec_internal() for PMP register access
libata: implement ATA_PFLAG_RESETTING
libata: add @timeout to ata_exec_internal[_sg]()
ahci: fix notification handling
ahci: clean up PORT_IRQ_BAD_PMP enabling
ahci: kill leftover from enabling NCQ over PMP
libata: wrap schedule_timeout_uninterruptible() in loop
libata: skip suppress reporting if ATA_EHI_QUIET
libata: clear ehi description after initial host report
pata_jmicron: match vendor and class code only
libata: add ST9160821AS / 3.ALD to NCQ blacklist
pata_acpi: ACPI driver support
libata-core: Expose gtm methods for driver use
libata: add HDT722516DLA380 to NCQ blacklist
libata: blacklist NCQ on Seagate Barracuda ST380817AS
[libata] Turn on ACPI by default
libata_scsi: Fix ATAPI transfer lengths
libata: correct handling of SRST reset sequences
libata: Integrate ACPI-based PATA/SATA hotplug - version 5
...
Diffstat (limited to 'drivers/ata/pata_rz1000.c')
-rw-r--r-- | drivers/ata/pata_rz1000.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c index 7632fcb070ca..ba8a31c55edb 100644 --- a/drivers/ata/pata_rz1000.c +++ b/drivers/ata/pata_rz1000.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | /** | 27 | /** |
28 | * rz1000_set_mode - mode setting function | 28 | * rz1000_set_mode - mode setting function |
29 | * @ap: ATA interface | 29 | * @link: ATA link |
30 | * @unused: returned device on set_mode failure | 30 | * @unused: returned device on set_mode failure |
31 | * | 31 | * |
32 | * Use a non standard set_mode function. We don't want to be tuned. We | 32 | * Use a non standard set_mode function. We don't want to be tuned. We |
@@ -34,12 +34,11 @@ | |||
34 | * whacked out. | 34 | * whacked out. |
35 | */ | 35 | */ |
36 | 36 | ||
37 | static int rz1000_set_mode(struct ata_port *ap, struct ata_device **unused) | 37 | static int rz1000_set_mode(struct ata_link *link, struct ata_device **unused) |
38 | { | 38 | { |
39 | int i; | 39 | struct ata_device *dev; |
40 | 40 | ||
41 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | 41 | ata_link_for_each_dev(dev, link) { |
42 | struct ata_device *dev = &ap->device[i]; | ||
43 | if (ata_dev_enabled(dev)) { | 42 | if (ata_dev_enabled(dev)) { |
44 | /* We don't really care */ | 43 | /* We don't really care */ |
45 | dev->pio_mode = XFER_PIO_0; | 44 | dev->pio_mode = XFER_PIO_0; |
@@ -74,7 +73,6 @@ static struct scsi_host_template rz1000_sht = { | |||
74 | static struct ata_port_operations rz1000_port_ops = { | 73 | static struct ata_port_operations rz1000_port_ops = { |
75 | .set_mode = rz1000_set_mode, | 74 | .set_mode = rz1000_set_mode, |
76 | 75 | ||
77 | .port_disable = ata_port_disable, | ||
78 | .tf_load = ata_tf_load, | 76 | .tf_load = ata_tf_load, |
79 | .tf_read = ata_tf_read, | 77 | .tf_read = ata_tf_read, |
80 | .check_status = ata_check_status, | 78 | .check_status = ata_check_status, |
@@ -100,9 +98,8 @@ static struct ata_port_operations rz1000_port_ops = { | |||
100 | .irq_handler = ata_interrupt, | 98 | .irq_handler = ata_interrupt, |
101 | .irq_clear = ata_bmdma_irq_clear, | 99 | .irq_clear = ata_bmdma_irq_clear, |
102 | .irq_on = ata_irq_on, | 100 | .irq_on = ata_irq_on, |
103 | .irq_ack = ata_irq_ack, | ||
104 | 101 | ||
105 | .port_start = ata_port_start, | 102 | .port_start = ata_sff_port_start, |
106 | }; | 103 | }; |
107 | 104 | ||
108 | static int rz1000_fifo_disable(struct pci_dev *pdev) | 105 | static int rz1000_fifo_disable(struct pci_dev *pdev) |