Browse Source

qcacmn: Fix compile error issue

Fix no member named 'pm_dentry' issue if set
WLAN_OPEN_SOURCE=n.

Change-Id: Iadc01285a76385b7d9a696824afcc88964c10014
CRs-Fixed: 3177555
Chaoli Zhou 3 years ago
parent
commit
d74a42a737
1 changed files with 8 additions and 0 deletions
  1. 8 0
      hif/src/hif_runtime_pm.c

+ 8 - 0
hif/src/hif_runtime_pm.c

@@ -304,6 +304,7 @@ static const struct file_operations hif_pci_runtime_pm_fops = {
 	.llseek         = seq_lseek,
 };
 
+#ifdef WLAN_OPEN_SOURCE
 /**
  * hif_runtime_pm_debugfs_create() - creates runtimepm debugfs entry
  * @scn: hif context
@@ -333,6 +334,13 @@ static void hif_runtime_pm_debugfs_remove(struct hif_softc *scn)
 
 	qdf_debugfs_remove_file(rpm_ctx->pm_dentry);
 }
+#else
+static inline void hif_runtime_pm_debugfs_remove(struct hif_softc *scn)
+{}
+
+static inline void hif_runtime_pm_debugfs_create(struct hif_softc *scn)
+{}
+#endif
 
 /**
  * hif_runtime_init() - Initialize Runtime PM