Parcourir la 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 il y a 3 ans
Parent
commit
d74a42a737
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  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,
 	.llseek         = seq_lseek,
 };
 };
 
 
+#ifdef WLAN_OPEN_SOURCE
 /**
 /**
  * hif_runtime_pm_debugfs_create() - creates runtimepm debugfs entry
  * hif_runtime_pm_debugfs_create() - creates runtimepm debugfs entry
  * @scn: hif context
  * @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);
 	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
  * hif_runtime_init() - Initialize Runtime PM