From: Tomas Winkler Date: Tue, 18 Feb 2014 12:31:09 +0000 (+0200) Subject: mei: txe: put pm callbacks under PM_SLEEP ifdef X-Git-Tag: v4.14-rc1~7813^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0270addae23aef8401b1150cbca20b8fb373cd0;p=platform%2Fkernel%2Flinux-rpi.git mei: txe: put pm callbacks under PM_SLEEP ifdef PCI suspend resume callbacks should be defined under CONFIG_PM_SLEEP Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/mei/pci-txe.c b/drivers/misc/mei/pci-txe.c index af4412c..a5bf39a 100644 --- a/drivers/misc/mei/pci-txe.c +++ b/drivers/misc/mei/pci-txe.c @@ -209,7 +209,7 @@ static void mei_txe_remove(struct pci_dev *pdev) } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int mei_txe_pci_suspend(struct device *device) { struct pci_dev *pdev = to_pci_dev(device); @@ -273,7 +273,7 @@ static SIMPLE_DEV_PM_OPS(mei_txe_pm_ops, #define MEI_TXE_PM_OPS (&mei_txe_pm_ops) #else #define MEI_TXE_PM_OPS NULL -#endif /* CONFIG_PM */ +#endif /* CONFIG_PM_SLEEP */ /* * PCI driver structure */