ASoC: zte: Fix missing dev in devm operation
authorMark Brown <broonie@kernel.org>
Thu, 4 Jun 2015 16:11:18 +0000 (17:11 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jun 2015 16:11:18 +0000 (17:11 +0100)
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/zte/zx296702-spdif.c

index 4a93bca232ff0c493ed0f02c245979247ca13ef8..11a0e46a1156913a23d9f31852fa508cbd1f8c5f 100644 (file)
@@ -309,7 +309,7 @@ static int zx_spdif_probe(struct platform_device *pdev)
        struct zx_spdif_info *zx_spdif;
        int ret;
 
-       zx_spdif = devm_kzalloc(sizeof(*zx_spdif), GFP_KERNEL);
+       zx_spdif = devm_kzalloc(&pdev->dev, sizeof(*zx_spdif), GFP_KERNEL);
        if (!zx_spdif)
                return -ENOMEM;