dfc: remove unsupported modes

Removes DFC modes that no longer supported.

Change-Id: I86c5d549ca02b0313dc89ed9e12d770323e55a9e
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
Subash Abhinov Kasiviswanathan
2020-04-27 15:04:59 -07:00
parent f45bf5cef2
commit fa1352fa7a
4 changed files with 16 additions and 40 deletions

View File

@@ -486,6 +486,11 @@ int dfc_qmap_client_init(void *port, int index, struct svc_info *psvc,
if (!port || !qmi)
return -EINVAL;
/* Prevent double init */
data = rcu_dereference(qmap_dfc_data);
if (data)
return -EINVAL;
data = kzalloc(sizeof(struct dfc_qmi_data), GFP_KERNEL);
if (!data)
return -ENOMEM;
@@ -499,8 +504,7 @@ int dfc_qmap_client_init(void *port, int index, struct svc_info *psvc,
atomic_set(&qmap_txid, 0);
if (!rmnet_ctl)
rmnet_ctl = symbol_get(rmnet_ctl_if);
rmnet_ctl = symbol_get(rmnet_ctl_if);
if (!rmnet_ctl) {
pr_err("rmnet_ctl module not loaded\n");
goto out;