Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fcf3b41 authored by Aditya Bavanari's avatar Aditya Bavanari Committed by Gerrit - the friendly Code Review server
Browse files

asoc: Use soc_find_component_locked API

Use locked version of soc_find_component API
to avoid page fault issues.

Change-Id: Ie92e502d3ad6a11e33e0977b1a86bd362b83b7cd
parent 7e00a355
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6370,7 +6370,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;
@@ -6467,7 +6467,7 @@ static int msm_init_aux_dev(struct platform_device *pdev,
			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;
+2 −2
Original line number Diff line number Diff line
@@ -7798,7 +7798,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;
@@ -7895,7 +7895,7 @@ static int msm_init_aux_dev(struct platform_device *pdev,
			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;