diff options
Diffstat (limited to 'drivers/ata/sata_sil.c')
-rw-r--r-- | drivers/ata/sata_sil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 907faa87239b..f17b3ae4dd37 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c | |||
@@ -109,7 +109,9 @@ enum { | |||
109 | }; | 109 | }; |
110 | 110 | ||
111 | static int sil_init_one (struct pci_dev *pdev, const struct pci_device_id *ent); | 111 | static int sil_init_one (struct pci_dev *pdev, const struct pci_device_id *ent); |
112 | #ifdef CONFIG_PM | ||
112 | static int sil_pci_device_resume(struct pci_dev *pdev); | 113 | static int sil_pci_device_resume(struct pci_dev *pdev); |
114 | #endif | ||
113 | static void sil_dev_config(struct ata_port *ap, struct ata_device *dev); | 115 | static void sil_dev_config(struct ata_port *ap, struct ata_device *dev); |
114 | static u32 sil_scr_read (struct ata_port *ap, unsigned int sc_reg); | 116 | static u32 sil_scr_read (struct ata_port *ap, unsigned int sc_reg); |
115 | static void sil_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val); | 117 | static void sil_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val); |
@@ -157,8 +159,10 @@ static struct pci_driver sil_pci_driver = { | |||
157 | .id_table = sil_pci_tbl, | 159 | .id_table = sil_pci_tbl, |
158 | .probe = sil_init_one, | 160 | .probe = sil_init_one, |
159 | .remove = ata_pci_remove_one, | 161 | .remove = ata_pci_remove_one, |
162 | #ifdef CONFIG_PM | ||
160 | .suspend = ata_pci_device_suspend, | 163 | .suspend = ata_pci_device_suspend, |
161 | .resume = sil_pci_device_resume, | 164 | .resume = sil_pci_device_resume, |
165 | #endif | ||
162 | }; | 166 | }; |
163 | 167 | ||
164 | static struct scsi_host_template sil_sht = { | 168 | static struct scsi_host_template sil_sht = { |
@@ -696,6 +700,7 @@ err_out: | |||
696 | return rc; | 700 | return rc; |
697 | } | 701 | } |
698 | 702 | ||
703 | #ifdef CONFIG_PM | ||
699 | static int sil_pci_device_resume(struct pci_dev *pdev) | 704 | static int sil_pci_device_resume(struct pci_dev *pdev) |
700 | { | 705 | { |
701 | struct ata_host_set *host_set = dev_get_drvdata(&pdev->dev); | 706 | struct ata_host_set *host_set = dev_get_drvdata(&pdev->dev); |
@@ -707,6 +712,7 @@ static int sil_pci_device_resume(struct pci_dev *pdev) | |||
707 | 712 | ||
708 | return 0; | 713 | return 0; |
709 | } | 714 | } |
715 | #endif | ||
710 | 716 | ||
711 | static int __init sil_init(void) | 717 | static int __init sil_init(void) |
712 | { | 718 | { |