From: YueHaibing Date: Mon, 2 Mar 2020 07:05:22 +0000 (+0800) Subject: ASoC: rt1015: set snd_soc_dai_ops in rt1015_dai driver X-Git-Tag: v5.10.7~1331^2~226^2~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a79ee2e095c0a60c32d5b1fce39d58e0fc4d9ec5;p=platform%2Fkernel%2Flinux-rpi.git ASoC: rt1015: set snd_soc_dai_ops in rt1015_dai driver snd_soc_dai_driver should set ops in rt1015_dai driver. Also make the two variable static to fix sparse warnings. Fixes: df31007400c3 ("ASoC: rt1015: add rt1015 amplifier driver") Signed-off-by: YueHaibing Link: https://lore.kernel.org/r/20200302070522.48104-1-yuehaibing@huawei.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt1015.c b/sound/soc/codecs/rt1015.c index c118d030bd2d..100b8c89d537 100644 --- a/sound/soc/codecs/rt1015.c +++ b/sound/soc/codecs/rt1015.c @@ -857,6 +857,7 @@ static struct snd_soc_dai_driver rt1015_dai[] = { .rates = RT1015_STEREO_RATES, .formats = RT1015_FORMATS, }, + .ops = &rt1015_aif_dai_ops, } };