diff options
Diffstat (limited to 'drivers/ata/pata_pdc202xx_old.c')
-rw-r--r-- | drivers/ata/pata_pdc202xx_old.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c index ee636beb05e1..edbaf9d653b8 100644 --- a/drivers/ata/pata_pdc202xx_old.c +++ b/drivers/ata/pata_pdc202xx_old.c | |||
@@ -244,10 +244,6 @@ static struct scsi_host_template pdc202xx_sht = { | |||
244 | .slave_configure = ata_scsi_slave_config, | 244 | .slave_configure = ata_scsi_slave_config, |
245 | .slave_destroy = ata_scsi_slave_destroy, | 245 | .slave_destroy = ata_scsi_slave_destroy, |
246 | .bios_param = ata_std_bios_param, | 246 | .bios_param = ata_std_bios_param, |
247 | #ifdef CONFIG_PM | ||
248 | .resume = ata_scsi_device_resume, | ||
249 | .suspend = ata_scsi_device_suspend, | ||
250 | #endif | ||
251 | }; | 247 | }; |
252 | 248 | ||
253 | static struct ata_port_operations pdc2024x_port_ops = { | 249 | static struct ata_port_operations pdc2024x_port_ops = { |
@@ -321,7 +317,7 @@ static struct ata_port_operations pdc2026x_port_ops = { | |||
321 | 317 | ||
322 | static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 318 | static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
323 | { | 319 | { |
324 | static struct ata_port_info info[3] = { | 320 | static const struct ata_port_info info[3] = { |
325 | { | 321 | { |
326 | .sht = &pdc202xx_sht, | 322 | .sht = &pdc202xx_sht, |
327 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 323 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
@@ -348,9 +344,7 @@ static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id | |||
348 | } | 344 | } |
349 | 345 | ||
350 | }; | 346 | }; |
351 | static struct ata_port_info *port_info[2]; | 347 | const struct ata_port_info *ppi[] = { &info[id->driver_data], NULL }; |
352 | |||
353 | port_info[0] = port_info[1] = &info[id->driver_data]; | ||
354 | 348 | ||
355 | if (dev->device == PCI_DEVICE_ID_PROMISE_20265) { | 349 | if (dev->device == PCI_DEVICE_ID_PROMISE_20265) { |
356 | struct pci_dev *bridge = dev->bus->self; | 350 | struct pci_dev *bridge = dev->bus->self; |
@@ -362,7 +356,7 @@ static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id | |||
362 | return -ENODEV; | 356 | return -ENODEV; |
363 | } | 357 | } |
364 | } | 358 | } |
365 | return ata_pci_init_one(dev, port_info, 2); | 359 | return ata_pci_init_one(dev, ppi); |
366 | } | 360 | } |
367 | 361 | ||
368 | static const struct pci_device_id pdc202xx[] = { | 362 | static const struct pci_device_id pdc202xx[] = { |