diff options
Diffstat (limited to 'drivers/ata/pata_sil680.c')
-rw-r--r-- | drivers/ata/pata_sil680.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index a5886f061c0b..440e2cb6ee75 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -232,10 +232,6 @@ static struct scsi_host_template sil680_sht = { | |||
232 | .slave_configure = ata_scsi_slave_config, | 232 | .slave_configure = ata_scsi_slave_config, |
233 | .slave_destroy = ata_scsi_slave_destroy, | 233 | .slave_destroy = ata_scsi_slave_destroy, |
234 | .bios_param = ata_std_bios_param, | 234 | .bios_param = ata_std_bios_param, |
235 | #ifdef CONFIG_PM | ||
236 | .suspend = ata_scsi_device_suspend, | ||
237 | .resume = ata_scsi_device_resume, | ||
238 | #endif | ||
239 | }; | 235 | }; |
240 | 236 | ||
241 | static struct ata_port_operations sil680_port_ops = { | 237 | static struct ata_port_operations sil680_port_ops = { |
@@ -345,7 +341,7 @@ static u8 sil680_init_chip(struct pci_dev *pdev) | |||
345 | 341 | ||
346 | static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | 342 | static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) |
347 | { | 343 | { |
348 | static struct ata_port_info info = { | 344 | static const struct ata_port_info info = { |
349 | .sht = &sil680_sht, | 345 | .sht = &sil680_sht, |
350 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 346 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
351 | .pio_mask = 0x1f, | 347 | .pio_mask = 0x1f, |
@@ -353,7 +349,7 @@ static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
353 | .udma_mask = 0x7f, | 349 | .udma_mask = 0x7f, |
354 | .port_ops = &sil680_port_ops | 350 | .port_ops = &sil680_port_ops |
355 | }; | 351 | }; |
356 | static struct ata_port_info info_slow = { | 352 | static const struct ata_port_info info_slow = { |
357 | .sht = &sil680_sht, | 353 | .sht = &sil680_sht, |
358 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 354 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
359 | .pio_mask = 0x1f, | 355 | .pio_mask = 0x1f, |
@@ -361,7 +357,7 @@ static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
361 | .udma_mask = 0x3f, | 357 | .udma_mask = 0x3f, |
362 | .port_ops = &sil680_port_ops | 358 | .port_ops = &sil680_port_ops |
363 | }; | 359 | }; |
364 | static struct ata_port_info *port_info[2] = {&info, &info}; | 360 | const struct ata_port_info *ppi[] = { &info, NULL }; |
365 | static int printed_version; | 361 | static int printed_version; |
366 | 362 | ||
367 | if (!printed_version++) | 363 | if (!printed_version++) |
@@ -370,12 +366,12 @@ static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
370 | switch(sil680_init_chip(pdev)) | 366 | switch(sil680_init_chip(pdev)) |
371 | { | 367 | { |
372 | case 0: | 368 | case 0: |
373 | port_info[0] = port_info[1] = &info_slow; | 369 | ppi[0] = &info_slow; |
374 | break; | 370 | break; |
375 | case 0x30: | 371 | case 0x30: |
376 | return -ENODEV; | 372 | return -ENODEV; |
377 | } | 373 | } |
378 | return ata_pci_init_one(pdev, port_info, 2); | 374 | return ata_pci_init_one(pdev, ppi); |
379 | } | 375 | } |
380 | 376 | ||
381 | #ifdef CONFIG_PM | 377 | #ifdef CONFIG_PM |