From: Subhransu S. Prusty Date: Wed, 30 Jul 2014 13:06:00 +0000 (+0530) Subject: ASoC: Intel: mfld-pcm: Fix to use correct sst_data pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19a23a5d76e59f84caafea7a3299c23894ecad63;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: Intel: mfld-pcm: Fix to use correct sst_data pointer Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/sst-mfld-platform-pcm.c b/sound/soc/intel/sst-mfld-platform-pcm.c index 7de87887d9f8..47df05ed3ac3 100644 --- a/sound/soc/intel/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/sst-mfld-platform-pcm.c @@ -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; }