ASoC: rt5514-spi: don't use snd_soc_lookup_component()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Jun 2019 07:03:41 +0000 (16:03 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 20 Jun 2019 12:00:39 +0000 (13:00 +0100)
commit7f80e1376aa4e74924ca3cb229dbd6c54fa4656e
tree7b1b44e0f1880b9a84b9a2995aaecc176d41a670
parent9700022109b6c495fb571f77324d34b294b29145
ASoC: rt5514-spi: don't use snd_soc_lookup_component()

rt5514-spi can use dev_get_drvdata() to get its component
because it is using snd_soc_component_set_drvdata();

static int rt5514_spi_pcm_probe(...)
{
...
=> snd_soc_component_set_drvdata(component, ...);
...
}

We don't need to use snd_soc_lookup_component() for it.
This patch uses dev_get_drvdata() instead of snd_soc_lookup_component().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514-spi.c