From: Wang YanQing Date: Tue, 9 Apr 2013 07:05:40 +0000 (+0800) Subject: pata_pdc2027x: Fix compiler warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59affa501e326992adc7470bde721e2d8b13afa7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jiri Kosina --- 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 { }; static int pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); +#ifdef CONFIG_PM static int pdc2027x_reinit_one(struct pci_dev *pdev); +#endif static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline); static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev); static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev);