diff options
author | Wang YanQing <udknight@gmail.com> | 2013-04-09 03:05:40 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-04-12 09:24:12 -0400 |
commit | 59affa501e326992adc7470bde721e2d8b13afa7 (patch) | |
tree | bcae1e41da94ec0c0ab2a7d0530972ff86877b89 /drivers/ata/pata_pdc2027x.c | |
parent | a895d57da04a4a24cda996e1a72425ff7e7e6c22 (diff) |
pata_pdc2027x: Fix compiler warning
Fix the follwing warnings:
linux/drivers/ata/pata_pdc2027x.c:66: warning: 'pdc2027x_reinit_one' declared 'static' but never defined
pdc2027x_reinit_one are defined only when CONFIG_PM is defined,
thus making it conditional.
Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/ata/pata_pdc2027x.c')
-rw-r--r-- | drivers/ata/pata_pdc2027x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index 3f94a886bb35..c76e65927b0e 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -63,7 +63,9 @@ enum { | |||
63 | }; | 63 | }; |
64 | 64 | ||
65 | static int pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); | 65 | static int pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); |
66 | #ifdef CONFIG_PM | ||
66 | static int pdc2027x_reinit_one(struct pci_dev *pdev); | 67 | static int pdc2027x_reinit_one(struct pci_dev *pdev); |
68 | #endif | ||
67 | static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline); | 69 | static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline); |
68 | static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev); | 70 | static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev); |
69 | static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev); | 71 | static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev); |