From: Mark Brown Date: Thu, 15 Jun 2017 19:13:33 +0000 (+0100) Subject: ASoC: rockchip: Fix build X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=33c0f552c9f3721b1e9452b1c82a37992fa90bfd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 ce09dee2202e..b4a8aff69570 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; }