diff options
Diffstat (limited to 'drivers/ata/pata_sil680.c')
-rw-r--r-- | drivers/ata/pata_sil680.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index 48eb5e538996..dab2889a556f 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -381,11 +381,13 @@ static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
381 | return ata_pci_init_one(pdev, port_info, 2); | 381 | return ata_pci_init_one(pdev, port_info, 2); |
382 | } | 382 | } |
383 | 383 | ||
384 | #ifdef CONFIG_PM | ||
384 | static int sil680_reinit_one(struct pci_dev *pdev) | 385 | static int sil680_reinit_one(struct pci_dev *pdev) |
385 | { | 386 | { |
386 | sil680_init_chip(pdev); | 387 | sil680_init_chip(pdev); |
387 | return ata_pci_device_resume(pdev); | 388 | return ata_pci_device_resume(pdev); |
388 | } | 389 | } |
390 | #endif | ||
389 | 391 | ||
390 | static const struct pci_device_id sil680[] = { | 392 | static const struct pci_device_id sil680[] = { |
391 | { PCI_VDEVICE(CMD, PCI_DEVICE_ID_SII_680), }, | 393 | { PCI_VDEVICE(CMD, PCI_DEVICE_ID_SII_680), }, |
@@ -398,8 +400,10 @@ static struct pci_driver sil680_pci_driver = { | |||
398 | .id_table = sil680, | 400 | .id_table = sil680, |
399 | .probe = sil680_init_one, | 401 | .probe = sil680_init_one, |
400 | .remove = ata_pci_remove_one, | 402 | .remove = ata_pci_remove_one, |
403 | #ifdef CONFIG_PM | ||
401 | .suspend = ata_pci_device_suspend, | 404 | .suspend = ata_pci_device_suspend, |
402 | .resume = sil680_reinit_one, | 405 | .resume = sil680_reinit_one, |
406 | #endif | ||
403 | }; | 407 | }; |
404 | 408 | ||
405 | static int __init sil680_init(void) | 409 | static int __init sil680_init(void) |