From: Kuninori Morimoto kuninori.morimoto.gx@renesas.com
codec driver and component driver has duplicated .probe/.remove functions, and codec side is just relayed it. This was quick-hack, but no longer needed. This patch uses component .probe/.remove
Signed-off-by: Kuninori Morimoto kuninori.morimoto.gx@renesas.com --- sound/soc/codecs/adau1761.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/adau1761.c b/sound/soc/codecs/adau1761.c index 3bc3cc5..f787dcc 100644 --- a/sound/soc/codecs/adau1761.c +++ b/sound/soc/codecs/adau1761.c @@ -640,8 +640,9 @@ static bool adau1761_readable_register(struct device *dev, unsigned int reg) return adau17x1_readable_register(dev, reg); }
-static int adau1761_codec_probe(struct snd_soc_codec *codec) +static int adau1761_codec_probe(struct snd_soc_component *component) { + struct snd_soc_codec *codec = snd_soc_component_to_codec(component); struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); struct adau1761_platform_data *pdata = codec->dev->platform_data; struct adau *adau = snd_soc_codec_get_drvdata(codec); @@ -714,12 +715,12 @@ static int adau1761_codec_probe(struct snd_soc_codec *codec) }
static const struct snd_soc_codec_driver adau1761_codec_driver = { - .probe = adau1761_codec_probe, .resume = adau17x1_resume, .set_bias_level = adau1761_set_bias_level, .suspend_bias_off = true,
.component_driver = { + .probe = adau1761_codec_probe, .controls = adau1761_controls, .num_controls = ARRAY_SIZE(adau1761_controls), .dapm_widgets = adau1x61_dapm_widgets,