Prechádzať zdrojové kódy

asoc: sm6150: use locked version of soc_find_component

use soc_find_component locked version to ensure proper
access of component list while trying to find wsa or
aux codec components from the list.

Change-Id: I01303cbce13df45f290242776231d17aad68521e
Signed-off-by: Aditya Bavanari <[email protected]>
Aditya Bavanari 6 rokov pred
rodič
commit
849a5fdeb1
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      asoc/sm6150.c

+ 2 - 2
asoc/sm6150.c

@@ -8157,7 +8157,7 @@ static int msm_init_aux_dev(struct platform_device *pdev,
 			ret = -EINVAL;
 			goto err;
 		}
-		if (soc_find_component(wsa_of_node, NULL)) {
+		if (soc_find_component_locked(wsa_of_node, NULL)) {
 			/* WSA device registered with ALSA core */
 			wsa881x_dev_info[found].of_node = wsa_of_node;
 			wsa881x_dev_info[found].index = i;
@@ -8224,7 +8224,7 @@ codec_aux_dev:
 				ret = -EINVAL;
 				goto err;
 			}
-			if (soc_find_component(aux_codec_of_node, NULL)) {
+			if (soc_find_component_locked(aux_codec_of_node, NULL)) {
 				/* AUX codec registered with ALSA core */
 				aux_cdc_dev_info[codecs_found].of_node =
 							aux_codec_of_node;