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/adau1977.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c index b319db6..cf7ae64 100644 --- a/sound/soc/codecs/adau1977.c +++ b/sound/soc/codecs/adau1977.c @@ -846,8 +846,9 @@ static int adau1977_set_sysclk(struct snd_soc_codec *codec, return 0; }
-static int adau1977_codec_probe(struct snd_soc_codec *codec) +static int adau1977_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 adau1977 *adau1977 = snd_soc_codec_get_drvdata(codec); int ret; @@ -868,12 +869,12 @@ static int adau1977_codec_probe(struct snd_soc_codec *codec) }
static struct snd_soc_codec_driver adau1977_codec_driver = { - .probe = adau1977_codec_probe, .set_bias_level = adau1977_set_bias_level, .set_sysclk = adau1977_set_sysclk, .idle_bias_off = true,
.component_driver = { + .probe = adau1977_codec_probe, .controls = adau1977_snd_controls, .num_controls = ARRAY_SIZE(adau1977_snd_controls), .dapm_widgets = adau1977_dapm_widgets,