summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuanyuan Liu <yuanliu@codeaurora.org>2016-05-13 10:17:46 -0700
committerVishwajith Upendra <vishwaji@codeaurora.org>2016-06-14 14:28:08 -0700
commit25c66e1ac911adca60ba4b7fbb46334febff7e51 (patch)
tree9702f8ca194196dbe80e5f9475af7a6e33f618d7
parenta6cedee34947ee60f6964425aa1f9b49b804b00d (diff)
qcacld-3.0: Add CONFIG_PM flag for PLD pcie suspend/resume
Add CONFIG_PM flag for PLD pcie suspend/resume as it is not needed in other platform when CONFIG_PM is not defined. Change-Id: Iab04d15c81cbb94ccbdeb9be2b00fa069a421a86 CRs-Fixed: 1014363
-rw-r--r--core/pld/src/pld_pcie.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pld/src/pld_pcie.c b/core/pld/src/pld_pcie.c
index 84175cda1964..d9dc95b8a313 100644
--- a/core/pld/src/pld_pcie.c
+++ b/core/pld/src/pld_pcie.c
@@ -242,6 +242,7 @@ static int pld_pcie_runtime_resume(struct pci_dev *pdev)
#endif
#endif
+#ifdef CONFIG_PM
/**
* pld_pcie_suspend() - Suspend callback function for power management
* @pdev: PCIE device
@@ -277,6 +278,7 @@ static int pld_pcie_resume(struct pci_dev *pdev)
pld_context = pld_get_global_context();
return pld_context->ops->resume(&pdev->dev, PLD_BUS_TYPE_PCIE);
}
+#endif
static struct pci_device_id pld_pcie_id_table[] = {
{ 0x168c, 0x003c, PCI_ANY_ID, PCI_ANY_ID },