]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: samsung: s3c24xx-i2s: Fix build after removal of DAI suspend/resume
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 13 Apr 2020 12:45:48 +0000 (14:45 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 14 Apr 2020 11:16:22 +0000 (12:16 +0100)
commitec21bdc6dd16d74b3674ef1fd12ae8e4e7418603
tree91fabb22876a4fd295589a62a62841890593f7b4
parentdd8e871d4e560eeb8d22af82dde91457ad835a63
ASoC: samsung: s3c24xx-i2s: Fix build after removal of DAI suspend/resume

Commit 450312b640f9 ("ASoC: soc-core: remove DAI suspend/resume")
removed the DAI side suspend/resume hooks and switched entirely to
component suspend/resume.  However the Samsung SoC s3c-i2s-v2 driver was
not updated.

Move the suspend/resume hooks from s3c-i2s-v2.c to s3c2412-i2s.c while
changing dai to component which allows to keep the struct
snd_soc_component_driver const.

This fixes build errors:

    sound/soc/samsung/s3c-i2s-v2.c: In function ‘s3c_i2sv2_register_component’:
    sound/soc/samsung/s3c-i2s-v2.c:730:9: error: ‘struct snd_soc_dai_driver’ has no member named ‘suspend’
      dai_drv->suspend = s3c2412_i2s_suspend;

Reported-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 450312b640f9 ("ASoC: soc-core: remove DAI suspend/resume")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200413124548.28197-1-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/s3c-i2s-v2.c
sound/soc/samsung/s3c2412-i2s.c