diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-11 19:03:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-11 19:03:03 -0400 |
commit | fb2c922b8588115d8914492493a37109bfb07884 (patch) | |
tree | 9b532d2989d998b1997bf04eae0f3eb15f1843b5 /drivers/ata/pata_cmd640.c | |
parent | 9ce3075c20d458040138690edfdf6446664ec3ee (diff) | |
parent | b9a3b4d1453689f2927668fcdc4827fdccf44d1b (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:
pata_platform: don't use generic ata_port_start
Use menuconfig objects: libata
add the ATI SB700 SATA controller device id to AHCI pci table
Add the combined mode for ATI SB700
pata_pcmcia: recognize 2GB CompactFlash from Transcend
git-libata-all: sata_via build fix
libata-acpi: clean up parameters and misc stuff
libata-acpi: s/CONFIG_SATA_ACPI/CONFIG_ATA_ACPI/
libata: give devices one last chance even if recovery failed with -EINVAL
libata: fallback to the other IDENTIFY on device error, take#2
libata: ignore EH scheduling during initialization
libata: clean up SFF init mess
libata: implement libata.spindown_compat
libata: reimplement suspend/resume support using sdev->manage_start_stop
Diffstat (limited to 'drivers/ata/pata_cmd640.c')
-rw-r--r-- | drivers/ata/pata_cmd640.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/ata/pata_cmd640.c b/drivers/ata/pata_cmd640.c index 2105985a8013..ed00fa9d53be 100644 --- a/drivers/ata/pata_cmd640.c +++ b/drivers/ata/pata_cmd640.c | |||
@@ -181,10 +181,6 @@ static struct scsi_host_template cmd640_sht = { | |||
181 | .slave_configure = ata_scsi_slave_config, | 181 | .slave_configure = ata_scsi_slave_config, |
182 | .slave_destroy = ata_scsi_slave_destroy, | 182 | .slave_destroy = ata_scsi_slave_destroy, |
183 | .bios_param = ata_std_bios_param, | 183 | .bios_param = ata_std_bios_param, |
184 | #ifdef CONFIG_PM | ||
185 | .resume = ata_scsi_device_resume, | ||
186 | .suspend = ata_scsi_device_suspend, | ||
187 | #endif | ||
188 | }; | 184 | }; |
189 | 185 | ||
190 | static struct ata_port_operations cmd640_port_ops = { | 186 | static struct ata_port_operations cmd640_port_ops = { |
@@ -253,17 +249,16 @@ static void cmd640_hardware_init(struct pci_dev *pdev) | |||
253 | 249 | ||
254 | static int cmd640_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | 250 | static int cmd640_init_one(struct pci_dev *pdev, const struct pci_device_id *id) |
255 | { | 251 | { |
256 | static struct ata_port_info info = { | 252 | static const struct ata_port_info info = { |
257 | .sht = &cmd640_sht, | 253 | .sht = &cmd640_sht, |
258 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 254 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
259 | .pio_mask = 0x1f, | 255 | .pio_mask = 0x1f, |
260 | .port_ops = &cmd640_port_ops | 256 | .port_ops = &cmd640_port_ops |
261 | }; | 257 | }; |
262 | 258 | const struct ata_port_info *ppi[] = { &info, NULL }; | |
263 | static struct ata_port_info *port_info[2] = { &info, &info }; | ||
264 | 259 | ||
265 | cmd640_hardware_init(pdev); | 260 | cmd640_hardware_init(pdev); |
266 | return ata_pci_init_one(pdev, port_info, 2); | 261 | return ata_pci_init_one(pdev, ppi); |
267 | } | 262 | } |
268 | 263 | ||
269 | static int cmd640_reinit_one(struct pci_dev *pdev) | 264 | static int cmd640_reinit_one(struct pci_dev *pdev) |