ASoC: mc13783: Drop fixed ADC & DAC ports usage
authorAlexander Shiyan <shc_work@mail.ru>
Sun, 5 Jan 2014 07:38:33 +0000 (11:38 +0400)
committerMark Brown <broonie@linaro.org>
Mon, 6 Jan 2014 15:37:43 +0000 (15:37 +0000)
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>
sound/soc/codecs/mc13783.c

index c2def5d188eeba16294abc41c234f19c38c4b003..997f708afc792f50403f679a6516554f87c34755 100644 (file)
@@ -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)