aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_hpt3x3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_hpt3x3.c')
-rw-r--r--drivers/ata/pata_hpt3x3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c
index 255c5aaff3a8..d019cdd5bc9f 100644
--- a/drivers/ata/pata_hpt3x3.c
+++ b/drivers/ata/pata_hpt3x3.c
@@ -249,7 +249,7 @@ static int hpt3x3_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
249 IRQF_SHARED, &hpt3x3_sht); 249 IRQF_SHARED, &hpt3x3_sht);
250} 250}
251 251
252#ifdef CONFIG_PM 252#ifdef CONFIG_PM_SLEEP
253static int hpt3x3_reinit_one(struct pci_dev *dev) 253static int hpt3x3_reinit_one(struct pci_dev *dev)
254{ 254{
255 struct ata_host *host = pci_get_drvdata(dev); 255 struct ata_host *host = pci_get_drvdata(dev);
@@ -277,7 +277,7 @@ static struct pci_driver hpt3x3_pci_driver = {
277 .id_table = hpt3x3, 277 .id_table = hpt3x3,
278 .probe = hpt3x3_init_one, 278 .probe = hpt3x3_init_one,
279 .remove = ata_pci_remove_one, 279 .remove = ata_pci_remove_one,
280#ifdef CONFIG_PM 280#ifdef CONFIG_PM_SLEEP
281 .suspend = ata_pci_device_suspend, 281 .suspend = ata_pci_device_suspend,
282 .resume = hpt3x3_reinit_one, 282 .resume = hpt3x3_reinit_one,
283#endif 283#endif