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
Tento commit je obsažen v:
Lin Bai
2018-11-15 15:44:45 +08:00
odevzdal nshrivas
rodič e4599388bd
revize fba89964c1

Zobrazit soubor

@@ -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;