Commit d0c6c482 authored by Daniel Mack's avatar Daniel Mack Committed by Mark Brown

ASoC: McASP: remove unused variables

codec_fmt and sample_rate variables are unused in both snd_platform_data
and davinci_audio_dev, so drop them.
Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 88abfd5b
...@@ -23,7 +23,6 @@ struct snd_platform_data { ...@@ -23,7 +23,6 @@ struct snd_platform_data {
u32 rx_dma_offset; u32 rx_dma_offset;
int asp_chan_q; /* event queue number for ASP channel */ int asp_chan_q; /* event queue number for ASP channel */
int ram_chan_q; /* event queue number for RAM channel */ int ram_chan_q; /* event queue number for RAM channel */
unsigned int codec_fmt;
/* /*
* Allowing this is more efficient and eliminates left and right swaps * Allowing this is more efficient and eliminates left and right swaps
* caused by underruns, but will swap the left and right channels * caused by underruns, but will swap the left and right channels
......
...@@ -1158,7 +1158,6 @@ static int davinci_mcasp_probe(struct platform_device *pdev) ...@@ -1158,7 +1158,6 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
dev->tdm_slots = pdata->tdm_slots; dev->tdm_slots = pdata->tdm_slots;
dev->num_serializer = pdata->num_serializer; dev->num_serializer = pdata->num_serializer;
dev->serial_dir = pdata->serial_dir; dev->serial_dir = pdata->serial_dir;
dev->codec_fmt = pdata->codec_fmt;
dev->version = pdata->version; dev->version = pdata->version;
dev->txnumevt = pdata->txnumevt; dev->txnumevt = pdata->txnumevt;
dev->rxnumevt = pdata->rxnumevt; dev->rxnumevt = pdata->rxnumevt;
......
...@@ -40,9 +40,7 @@ enum { ...@@ -40,9 +40,7 @@ enum {
struct davinci_audio_dev { struct davinci_audio_dev {
struct davinci_pcm_dma_params dma_params[2]; struct davinci_pcm_dma_params dma_params[2];
void __iomem *base; void __iomem *base;
int sample_rate;
struct device *dev; struct device *dev;
unsigned int codec_fmt;
/* McASP specific data */ /* McASP specific data */
int tdm_slots; int tdm_slots;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment