diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2015-05-19 13:34:51 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:23:06 -0500 |
commit | 84ca7ac83dbd103ef5889bd7cae6174d30e1a199 (patch) | |
tree | 3eb273b0fb8c7179773fc54ec65a6d4f17efdbf2 /sound | |
parent | 51848537b058d710e1b62b9e67391d4ad820db58 (diff) |
MLK-10903-2: ASoC: imx_spdif: add snd_soc_pm_ops
Add snd_soc_pm_ops in machine driver to make the trigger suspend/resume
be called in suspend/resume. Remove platform_set_drvdata for redundance,
When register card, it has been called.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-spdif.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index e1dc40143600..e54c3c323eee 100644 --- a/sound/soc/fsl/imx-spdif.c +++ b/sound/soc/fsl/imx-spdif.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Freescale Semiconductor, Inc. + * Copyright (C) 2013-2015 Freescale Semiconductor, Inc. * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License @@ -71,8 +71,6 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) goto end; } - platform_set_drvdata(pdev, data); - end: if (spdif_np) of_node_put(spdif_np); @@ -90,6 +88,7 @@ static struct platform_driver imx_spdif_driver = { .driver = { .name = "imx-spdif", .owner = THIS_MODULE, + .pm = &snd_soc_pm_ops, .of_match_table = imx_spdif_dt_ids, }, .probe = imx_spdif_audio_probe, |