From fe21119eed18804b2bc7c47216b6f4478de0268d Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 19 May 2015 13:34:51 +0800 Subject: 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 --- sound/soc/fsl/imx-spdif.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sound') 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, -- cgit v1.2.3