summaryrefslogtreecommitdiffstats
path: root/sound/soc/amd
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2024-06-17 12:58:37 +0530
committerMark Brown <broonie@kernel.org>2024-06-21 13:18:05 +0100
commit75a08ec8c3a6aef914235c409a99046a3d29d1d4 (patch)
tree9080c43b20842cb3d1278e56eaaf9c8bb7d02b15 /sound/soc/amd
parentde7a09dec4b90a7f92b1ebcdfeed69400b5079f4 (diff)
downloadlinux-stable-75a08ec8c3a6aef914235c409a99046a3d29d1d4.tar.gz
linux-stable-75a08ec8c3a6aef914235c409a99046a3d29d1d4.tar.bz2
linux-stable-75a08ec8c3a6aef914235c409a99046a3d29d1d4.zip
ASoC: amd: acp: remove acp_i2s_probe function
In acp_i2s_probe(), acp_base null check is verified. As already acp_base null check will be verified in acp platform driver probe sequence, additional NULL check in acp_i2s_probe() is not needed. Remove acp_i2s_probe() function. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://patch.msgid.link/20240617072844.871468-4-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd')
-rw-r--r--sound/soc/amd/acp/acp-i2s.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sound/soc/amd/acp/acp-i2s.c b/sound/soc/amd/acp/acp-i2s.c
index 6815e751a819..54985fd0eede 100644
--- a/sound/soc/amd/acp/acp-i2s.c
+++ b/sound/soc/amd/acp/acp-i2s.c
@@ -584,21 +584,7 @@ static int acp_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_d
return 0;
}
-static int acp_i2s_probe(struct snd_soc_dai *dai)
-{
- struct device *dev = dai->component->dev;
- struct acp_dev_data *adata = dev_get_drvdata(dev);
-
- if (!adata->acp_base) {
- dev_err(dev, "I2S base is NULL\n");
- return -EINVAL;
- }
-
- return 0;
-}
-
const struct snd_soc_dai_ops asoc_acp_cpu_dai_ops = {
- .probe = acp_i2s_probe,
.startup = acp_i2s_startup,
.hw_params = acp_i2s_hwparams,
.prepare = acp_i2s_prepare,