Browse Source

qcacmn: Fix unresolved function compiler error

reset_control_get not defined without CONFIG_RESET_CONTROLLER, use
reset_control_get_optional instead accordingly.

Change-Id: Ibd1c68a2fe8f063dffb556b4c0e49eca96eb0b86
CRs-Fixed: 2350601
Lin Bai 6 years ago
parent
commit
fba89964c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qal/linux/src/qal_vbus_dev.c

+ 1 - 1
qal/linux/src/qal_vbus_dev.c

@@ -97,7 +97,7 @@ qal_vbus_get_dev_rstctl(struct qdf_pfm_hndl *pfhndl, const char *state,
 	if (!pfhndl || !state)
 		return QDF_STATUS_E_INVAL;
 
-	rsctl = reset_control_get((struct device *)pfhndl, state);
+	rsctl = reset_control_get_optional((struct device *)pfhndl, state);
 
 	if (!rsctl)
 		return QDF_STATUS_E_FAILURE;