mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: meson: gx-card: tidyup not to use card->dev
struct snd_soc_card will be capsuled soon, its member will not be able to access from non soc-card.c. To reduce the difference during conversion, replace dev. - card->dev, ... + dev, ... No functional change, but is preparation for Card capsuling. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://patch.msgid.link/878q72tkdw.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
13651ae654
commit
138a0faeac
|
|
@ -48,9 +48,10 @@ static int gx_card_parse_i2s(struct snd_soc_card *card,
|
|||
struct meson_card *priv = snd_soc_card_get_drvdata(card);
|
||||
struct snd_soc_dai_link *link = &card->dai_link[*index];
|
||||
struct gx_dai_link_i2s_data *be;
|
||||
struct device *dev = card->dev;
|
||||
|
||||
/* Allocate i2s link parameters */
|
||||
be = devm_kzalloc(card->dev, sizeof(*be), GFP_KERNEL);
|
||||
be = devm_kzalloc(dev, sizeof(*be), GFP_KERNEL);
|
||||
if (!be)
|
||||
return -ENOMEM;
|
||||
priv->link_data[*index] = be;
|
||||
|
|
@ -81,9 +82,10 @@ static int gx_card_add_link(struct snd_soc_card *card, struct device_node *np,
|
|||
{
|
||||
struct snd_soc_dai_link *dai_link = &card->dai_link[*index];
|
||||
struct snd_soc_dai_link_component *cpu;
|
||||
struct device *dev = card->dev;
|
||||
int ret;
|
||||
|
||||
cpu = devm_kzalloc(card->dev, sizeof(*cpu), GFP_KERNEL);
|
||||
cpu = devm_kzalloc(dev, sizeof(*cpu), GFP_KERNEL);
|
||||
if (!cpu)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user