diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2015-05-19 13:34:51 +0800 |
---|---|---|
committer | Shengjiu Wang <shengjiu.wang@freescale.com> | 2015-05-21 18:29:51 +0800 |
commit | fe21119eed18804b2bc7c47216b6f4478de0268d (patch) | |
tree | 8279dbbfc0a74edfd9569563b497c3ec4914c16c /sound | |
parent | 2a6a522c86d6c0fe80023c4327ca7ce4792035c8 (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, |