From: Mark Brown Date: Thu, 15 Jun 2017 19:13:33 +0000 (+0100) Subject: ASoC: rockchip: Fix build X-Git-Tag: v4.13-rc1~142^2~1^2^2~4^4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33c0f552c9f3721b1e9452b1c82a37992fa90bfd;p=thirdparty%2Fkernel%2Flinux.git ASoC: rockchip: Fix build Reported-by: Christophe Jaillet Signed-off-by: Mark Brown --- diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index ce09dee2202e1..b4a8aff69570b 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -641,10 +641,10 @@ static int rockchip_i2s_probe(struct platform_device *pdev) goto err_pm_disable; } - soc_dai = devm_kmemdup(&pdev->dev, &rockchip_i2s_dai + soc_dai = devm_kmemdup(&pdev->dev, &rockchip_i2s_dai, sizeof(*soc_dai), GFP_KERNEL); if (!soc_dai) { - err = -ENOMEM; + ret = -ENOMEM; goto err_pm_disable; }