summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/mc13783.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-01-05 08:38:33 +0100
committerMark Brown <broonie@linaro.org>2014-01-06 16:37:43 +0100
commit295b84237b4ec2e1f148c8f6d7f59a7d06fda624 (patch)
tree1ab8a10e2a06091d2263236bef74ab2546080eba /sound/soc/codecs/mc13783.c
parentASoC: mc13783: Use core error messages if registration fails (diff)
downloadlinux-295b84237b4ec2e1f148c8f6d7f59a7d06fda624.tar.xz
linux-295b84237b4ec2e1f148c8f6d7f59a7d06fda624.zip
ASoC: mc13783: Drop fixed ADC & DAC ports usage
There are no users of this driver without pdata, so stop using constant assignment of ADC and DAC ports. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/mc13783.c')
-rw-r--r--sound/soc/codecs/mc13783.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index c2def5d188ee..997f708afc79 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -770,8 +770,7 @@ static int __init mc13783_codec_probe(struct platform_device *pdev)
priv->adc_ssi_port = pdata->adc_ssi_port;
priv->dac_ssi_port = pdata->dac_ssi_port;
} else {
- priv->adc_ssi_port = MC13783_SSI1_PORT;
- priv->dac_ssi_port = MC13783_SSI2_PORT;
+ return -ENOSYS;
}
if (priv->adc_ssi_port == priv->dac_ssi_port)