mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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>
This commit is contained in:
parent
9700022109
commit
7f80e1376a
@ -473,9 +473,7 @@ static int __maybe_unused rt5514_suspend(struct device *dev)
|
||||
|
||||
static int __maybe_unused rt5514_resume(struct device *dev)
|
||||
{
|
||||
struct snd_soc_component *component = snd_soc_lookup_component(dev, DRV_NAME);
|
||||
struct rt5514_dsp *rt5514_dsp =
|
||||
snd_soc_component_get_drvdata(component);
|
||||
struct rt5514_dsp *rt5514_dsp = dev_get_drvdata(dev);
|
||||
int irq = to_spi_device(dev)->irq;
|
||||
u8 buf[8];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user