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/adav80x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c index 6e793eb..42a5589 100644 --- a/sound/soc/codecs/adav80x.c +++ b/sound/soc/codecs/adav80x.c @@ -799,8 +799,9 @@ static struct snd_soc_dai_driver adav80x_dais[] = { }, };
-static int adav80x_probe(struct snd_soc_codec *codec) +static int adav80x_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 adav80x *adav80x = snd_soc_codec_get_drvdata(codec);
@@ -826,7 +827,6 @@ static int adav80x_resume(struct snd_soc_codec *codec) }
static struct snd_soc_codec_driver adav80x_codec_driver = { - .probe = adav80x_probe, .resume = adav80x_resume, .set_bias_level = adav80x_set_bias_level, .suspend_bias_off = true, @@ -835,6 +835,7 @@ static struct snd_soc_codec_driver adav80x_codec_driver = { .set_sysclk = adav80x_set_sysclk,
.component_driver = { + .probe = adav80x_probe, .controls = adav80x_controls, .num_controls = ARRAY_SIZE(adav80x_controls), .dapm_widgets = adav80x_dapm_widgets,