diff options
Diffstat (limited to 'drivers/ata/pata_cs5530.c')
-rw-r--r-- | drivers/ata/pata_cs5530.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c index 8afe854a5a50..48ae4b434474 100644 --- a/drivers/ata/pata_cs5530.c +++ b/drivers/ata/pata_cs5530.c | |||
@@ -326,7 +326,7 @@ static int cs5530_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
326 | return ata_pci_bmdma_init_one(pdev, ppi, &cs5530_sht, NULL, 0); | 326 | return ata_pci_bmdma_init_one(pdev, ppi, &cs5530_sht, NULL, 0); |
327 | } | 327 | } |
328 | 328 | ||
329 | #ifdef CONFIG_PM | 329 | #ifdef CONFIG_PM_SLEEP |
330 | static int cs5530_reinit_one(struct pci_dev *pdev) | 330 | static int cs5530_reinit_one(struct pci_dev *pdev) |
331 | { | 331 | { |
332 | struct ata_host *host = pci_get_drvdata(pdev); | 332 | struct ata_host *host = pci_get_drvdata(pdev); |
@@ -343,7 +343,7 @@ static int cs5530_reinit_one(struct pci_dev *pdev) | |||
343 | ata_host_resume(host); | 343 | ata_host_resume(host); |
344 | return 0; | 344 | return 0; |
345 | } | 345 | } |
346 | #endif /* CONFIG_PM */ | 346 | #endif /* CONFIG_PM_SLEEP */ |
347 | 347 | ||
348 | static const struct pci_device_id cs5530[] = { | 348 | static const struct pci_device_id cs5530[] = { |
349 | { PCI_VDEVICE(CYRIX, PCI_DEVICE_ID_CYRIX_5530_IDE), }, | 349 | { PCI_VDEVICE(CYRIX, PCI_DEVICE_ID_CYRIX_5530_IDE), }, |
@@ -356,7 +356,7 @@ static struct pci_driver cs5530_pci_driver = { | |||
356 | .id_table = cs5530, | 356 | .id_table = cs5530, |
357 | .probe = cs5530_init_one, | 357 | .probe = cs5530_init_one, |
358 | .remove = ata_pci_remove_one, | 358 | .remove = ata_pci_remove_one, |
359 | #ifdef CONFIG_PM | 359 | #ifdef CONFIG_PM_SLEEP |
360 | .suspend = ata_pci_device_suspend, | 360 | .suspend = ata_pci_device_suspend, |
361 | .resume = cs5530_reinit_one, | 361 | .resume = cs5530_reinit_one, |
362 | #endif | 362 | #endif |