ASoC: Don't crash on PM operations
PATCH 1/1 ASoC: Don't crash on PM operations
The move over to exposing snd_soc_register_card() let the initialisation of the driver data we use to find the card in PM operations go AWOL. Fix this by setting the driver data when we register the card.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/soc-core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +2 -0
@@ -3365,6 +3365,8 @@ int snd_soc_register_card(struct snd_soc_card *card)if (!card->name || !card->dev)return -EINVAL ; +dev_set_drvdata (card->dev, card); +snd_soc_initialize_card_lists (card);soc_init_card_debugfs (card);
Signature · 1 line
1.7.4.1
Quoted 8 lines · Mark Brown
The move over to exposing
snd_soc_register_card()let the initialisation of the driver data we use to find the card in PM operations go AWOL. Fix this by setting the driver data when we register the card.Signed-off-by Mark Brown <[email protected]>--- sound/soc/soc-core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Acked-by Liam Girdwood <[email protected]>