ASoC: Intel: mfld-pcm: Fix to Store device context in sst_data
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Thu, 30 Oct 2014 10:51:44 +0000 (16:21 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 31 Oct 2014 16:56:48 +0000 (16:56 +0000)
Some debug prints use dev context in sst_data. Store the device context for
the same.

Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst-mfld-platform-pcm.c

index e7cf18d1d4211cb3c890212725e6856a6025121b..6032f18693bec0748a7f130b5ddaa6d56f74c83f 100644 (file)
@@ -706,6 +706,7 @@ static int sst_platform_probe(struct platform_device *pdev)
        pdata->pdev_strm_map = dpcm_strm_map;
        pdata->strm_map_size = ARRAY_SIZE(dpcm_strm_map);
        drv->pdata = pdata;
+       drv->pdev = pdev;
        mutex_init(&drv->lock);
        dev_set_drvdata(&pdev->dev, drv);