Skip to content

Commit 2338c03

Browse files
Srinivas KandagatlaRaviHothi
authored andcommitted
FROMLIST: ASoC: qcom: q6apm: remove child devices when apm is removed
looks like q6apm driver does not remove the child driver q6apm-dai and q6apm-bedais when the this driver is removed. Fix this by using a manage version of of_platfom_populate. With this change when the dsp is shutdown all the devices assocated with q6apm will now be removed. Link: https://lore.kernel.org/all/20260223180740.444311-3-srinivas.kandagatla@oss.qualcomm.com/ Fixes: 5477518 ("ASoC: qdsp6: audioreach: add q6apm support") Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
1 parent e143568 commit 2338c03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/qcom/qdsp6/q6apm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ static int apm_probe(gpr_device_t *gdev)
773773
return ret;
774774
}
775775

776-
return of_platform_populate(dev->of_node, NULL, NULL, dev);
776+
return devm_of_platform_populate(dev);
777777
}
778778

779779
static void apm_remove(gpr_device_t *gdev)

0 commit comments

Comments
 (0)