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:
Kuninori Morimoto 2026-07-23 06:35:01 +00:00 committed by Mark Brown
parent 7050ee33c2
commit 1579361993
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;