Skip to content

Commit

Permalink
ASoC: zte: Fix missing dev in devm operation
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Mark Brown committed Jun 4, 2015
1 parent c8d8ff0 commit 69ccc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/zte/zx296702-spdif.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 69ccc50

Please sign in to comment.