From: Chancel Liu Date: Fri, 30 Sep 2022 06:44:39 +0000 (+0800) Subject: ASoC: fsl_rpmsg: Register different ASoC machine devices X-Git-Tag: v6.2-rc1~126^2^2~155^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76a874caeab596972f529968aa0d19d4ba1d2197;p=thirdparty%2Fkernel%2Flinux.git ASoC: fsl_rpmsg: Register different ASoC machine devices This driver helps register ASoC machine device thus use of PLATFORM_DEVID_AUTO macro in API can automatically create device for each sound card based on rpmsg. Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang Link: https://lore.kernel.org/r/20220930064441.2548505-6-chancel.liu@nxp.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c index bf94838bdbefe..fde3d5006ce0d 100644 --- a/sound/soc/fsl/fsl_rpmsg.c +++ b/sound/soc/fsl/fsl_rpmsg.c @@ -235,7 +235,7 @@ static int fsl_rpmsg_probe(struct platform_device *pdev) rpmsg->card_pdev = platform_device_register_data(&pdev->dev, "imx-audio-rpmsg", - PLATFORM_DEVID_NONE, + PLATFORM_DEVID_AUTO, NULL, 0); if (IS_ERR(rpmsg->card_pdev)) {