mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 20:53:03 +02:00
ASoC: soc-core: remove dev from soc_component_initialize()
Component already has component->dev. No longer need to set dev on soc_component_initialize(). Remove it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/87h5lqrz6z.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7050ee33c2
commit
1579361993
|
|
@ -2708,9 +2708,10 @@ static void snd_soc_del_component_unlocked(struct snd_soc_component *component)
|
|||
}
|
||||
|
||||
static int soc_component_initialize(struct snd_soc_component *component,
|
||||
const struct snd_soc_component_driver *driver,
|
||||
struct device *dev)
|
||||
const struct snd_soc_component_driver *driver)
|
||||
{
|
||||
struct device *dev = component->dev;
|
||||
|
||||
component->dapm = snd_soc_dapm_alloc(dev);
|
||||
if (!component->dapm)
|
||||
return -ENOMEM;
|
||||
|
|
@ -2730,7 +2731,6 @@ static int soc_component_initialize(struct snd_soc_component *component,
|
|||
}
|
||||
}
|
||||
|
||||
component->dev = dev;
|
||||
component->driver = driver;
|
||||
|
||||
return 0;
|
||||
|
|
@ -2785,7 +2785,7 @@ int snd_soc_register_component_c(struct snd_soc_component *component,
|
|||
{
|
||||
int ret;
|
||||
|
||||
ret = soc_component_initialize(component, component_driver, component->dev);
|
||||
ret = soc_component_initialize(component, component_driver);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user