ASoC: Intel: mfld-pcm: Fix to use correct sst_data pointer
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Wed, 30 Jul 2014 13:06:00 +0000 (18:36 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 31 Jul 2014 19:18:09 +0000 (20:18 +0100)
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@linaro.org>
sound/soc/intel/sst-mfld-platform-pcm.c

index 7de8788..47df05e 100644 (file)
@@ -573,7 +573,7 @@ static int sst_platform_probe(struct platform_device *pdev)
        struct sst_platform_data *pdata = pdev->dev.platform_data;
 
        drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL);
-       if (sst == NULL) {
+       if (drv == NULL) {
                pr_err("kzalloc failed\n");
                return -ENOMEM;
        }