summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>2016-10-27 15:03:48 -0700
committerqcabuildsw <qcabuildsw@localhost>2017-01-06 21:07:25 -0800
commita09c93ad080c435e968c7e57c9846ace0ba7d14a (patch)
tree484dc85edc48716b0a2ce1cb5b05b74a2164ebe9
parent44fc40001b2371bf72b522de1db8e8e62b627a06 (diff)
qcacld-3.0: Initialize debugfs support in QDF
Invoke QDF debugfs API from CDS to initialize and cleanup. Change-Id: I8b67f46e94b08babee04102d65b7803e4db1da00 CRs-Fixed: 1083792
-rw-r--r--core/cds/inc/cds_api.h3
-rw-r--r--core/cds/src/cds_api.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/core/cds/inc/cds_api.h b/core/cds/inc/cds_api.h
index 12b583d53dd0..b74dd8e1f4da 100644
--- a/core/cds/inc/cds_api.h
+++ b/core/cds/inc/cds_api.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -37,6 +37,7 @@
#include <qdf_types.h>
#include <qdf_status.h>
#include <qdf_mem.h>
+#include <qdf_debugfs.h>
#include <qdf_list.h>
#include <qdf_trace.h>
#include <qdf_event.h>
diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c
index 46e1cd0ee111..df1c1055c642 100644
--- a/core/cds/src/cds_api.c
+++ b/core/cds/src/cds_api.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -88,6 +88,7 @@ void cds_sys_probe_thread_cback(void *pUserData);
*/
v_CONTEXT_t cds_init(void)
{
+ qdf_debugfs_init();
qdf_mem_init();
qdf_mc_timer_manager_init();
@@ -120,6 +121,7 @@ void cds_deinit(void)
qdf_mc_timer_manager_exit();
qdf_mem_exit();
+ qdf_debugfs_exit();
gp_cds_context->qdf_ctx = NULL;
gp_cds_context = NULL;