Browse Source

qcacmn: Fix export symbol for multi drivers compilation

Update spectral module files to use qdf_export_symbol to facilitate
multiple driver module compilation support.

Change-Id: I2ae9f4b38d67600f10a9c8991a5095ff50f7dfb2
CRs-fixed: 2197751
Manikandan Mohan 7 years ago
parent
commit
56c2608fa3

+ 2 - 1
spectral/dispatcher/src/wlan_spectral_ucfg_api.c

@@ -20,6 +20,7 @@
 #include <wlan_spectral_ucfg_api.h>
 #include "../../core/spectral_cmn_api_i.h"
 #include <wlan_spectral_utils_api.h>
+#include <qdf_module.h>
 
 int
 ucfg_spectral_control(struct wlan_objmgr_pdev *pdev,
@@ -43,7 +44,7 @@ ucfg_spectral_control(struct wlan_objmgr_pdev *pdev,
 					   id,
 					   indata, insize, outdata, outsize);
 }
-EXPORT_SYMBOL(ucfg_spectral_control);
+qdf_export_symbol(ucfg_spectral_control);
 
 void ucfg_spectral_scan_set_ppid(struct wlan_objmgr_pdev *pdev, uint32_t ppid)
 {

+ 2 - 3
spectral/dispatcher/src/wlan_spectral_utils_api.c

@@ -21,7 +21,6 @@
 #include <qdf_module.h>
 #include "../../core/spectral_cmn_api_i.h"
 #include <wlan_spectral_tgt_api.h>
-#include <linux/export.h>
 
 QDF_STATUS
 wlan_spectral_init(void)
@@ -112,7 +111,7 @@ spectral_register_legacy_cb(struct wlan_objmgr_psoc *psoc,
 
 	return QDF_STATUS_SUCCESS;
 }
-EXPORT_SYMBOL(spectral_register_legacy_cb);
+qdf_export_symbol(spectral_register_legacy_cb);
 
 int16_t
 spectral_vdev_get_chan_freq(struct wlan_objmgr_vdev *vdev)
@@ -188,7 +187,7 @@ wlan_register_wmi_spectral_cmd_ops(struct wlan_objmgr_pdev *pdev,
 
 	return sc->sptrlc_register_wmi_spectral_cmd_ops(pdev, cmd_ops);
 }
-EXPORT_SYMBOL(wlan_register_wmi_spectral_cmd_ops);
+qdf_export_symbol(wlan_register_wmi_spectral_cmd_ops);
 
 QDF_STATUS spectral_pdev_open(struct wlan_objmgr_pdev *pdev)
 {