Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1930186yba; Tue, 2 Apr 2019 20:06:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbXRJcTl4Voo5PcQxfE9B3mS/2/+Pk65JdkutOIO2f77tZhQd1uPY4g9588biTIlYZn+MR X-Received: by 2002:a17:902:820c:: with SMTP id x12mr61684402pln.199.1554260801305; Tue, 02 Apr 2019 20:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554260801; cv=none; d=google.com; s=arc-20160816; b=pss7ynQhCry51LMBgvpkXRrnx9ct0eEvmCKq0TPPAPaR5/Wxae2olmNLGNR9x57fbX lEXYQ2v5XtR73GLlBfElM49Tixpqe0CLNdqwAjxlPr4klBVgJgCg3VeLiJk3uV2hr/HL ssiOWRXBOeC+HRtDW6uf8IyajJtjzYW9qkvI6Xo3ye5oXVJ6LY7MVSmrPeWkJUzI+iIi ws0M3ciNaD49DUWMrfFEPLyoLB5fNGzk9JHAGgFiZxZOW8A9Lc8uaXmAi4LwkT+rLgfZ l9APD6OIH4Rv0PD3eOmFkqGqRMr/bWckaxoOFPjUcbeioOs6Gy73iozrEJmwLTI5FZ5z bwUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2ancDZQ4xixL2Du0VM8ghYyMl2kD4SmkUdQ4EQ8sBZI=; b=MJh4neigk+uNmMnybdulA3yIJI3QSCC1/IYh2ZWcob9UlWsGnMDWkIGwiYZBhQ/Xsm mlzAf9fNlE9zmwUyKMEzRdbjCrtpdPIm8lN2mPWbmCjItHCuFutev2Cg7tNx7vTZ4TYu eEE/YKm8WRzwSMacg7LyOJeuBPSZLWok74FlEtnnrHiKouObVdizLvkoIWZJu+JOqhwU YC5KEwqyn99a2Canb/OmLhdlodPJKT/tzFYUrY4O90SyptRuwb1Jt966qFqt/R/zAScv NuTLoWt3WG79yAZHpf8ClBEwl1WKVZNvTRqs8SYIrOCY3ypMw3sqOe7fIAdwnr25/VMi dEgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kGPOKmfA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si12997154plf.356.2019.04.02.20.06.25; Tue, 02 Apr 2019 20:06:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kGPOKmfA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727254AbfDCDFO (ORCPT + 99 others); Tue, 2 Apr 2019 23:05:14 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42077 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbfDCDFO (ORCPT ); Tue, 2 Apr 2019 23:05:14 -0400 Received: by mail-lj1-f194.google.com with SMTP id v22so8774419lje.9 for ; Tue, 02 Apr 2019 20:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2ancDZQ4xixL2Du0VM8ghYyMl2kD4SmkUdQ4EQ8sBZI=; b=kGPOKmfA3nAi1al0eD0+aEb/wR7UTXtFaTA61s0L/mWZ43rJVaTkBqCEwRVXpLTVYM VHkD52qGVRdZXZ/F0kXq0f+zWqsmuoExmqM+v7Ezh1HQbxMuf31j+ApIyga1h9WZMrOt hYSStVsAzehx7kWXjnYhultVVFAfV3M/ko14kPJ8hMTRG3uWLI42DgT3C2EQcDK1UNwk bmF1HF7RWRpGWsjiGb1anLPZkerKCuwb3amM/76jCDYiu6AWryhWi+De0naIhthXOHFD 3rxBCGsH3a5g43a1JoQbiDRcyHkTsU1HOyWSguf/W+bGPvsWhsWwGU06rwwBNxqbzBEZ Xy6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2ancDZQ4xixL2Du0VM8ghYyMl2kD4SmkUdQ4EQ8sBZI=; b=K2WHROb1srOo+0O1E97OWcvQiCyKGe9OK1Rq9r1WvZv0fJfVjYhk43xhbHQ/aG4eR+ BVv8VfU+IoN5NSx/d5aleSMHa5GrRBuRV3YjmCHvXLc4hPe1quGlSR0ginNSRlEV6yzN 79SNLF0y0/G3KJX+VC9PLAQunOxa8DGH4xE6SwzhO+o3W7kSpJkhROxbcNHou6MVLMng 2Sy4pLklRicebJe05PFG/K/8R+CIarWqyWrgsfGKkP2zxg0ezXZcnhZkHdfsri5deWCQ hYAtQMYW2VqSDgHcEuBYKKYJHiIYWRwwYl0XTCyOczXg+ROjCqmhhnbLwjfaXpdKdGE0 Sj2A== X-Gm-Message-State: APjAAAVtq9aaCSOiriUMasRx2yi9P3QcbHNwZTjCx91tfWtHID2fmJ2z nNTUciSHn+lKzIK4EgY94QOONg== X-Received: by 2002:a2e:8ece:: with SMTP id e14mr26492025ljl.66.1554260712515; Tue, 02 Apr 2019 20:05:12 -0700 (PDT) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id d1sm2701968lfa.15.2019.04.02.20.05.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 20:05:11 -0700 (PDT) From: Anders Roxell To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] ASoC: Mediatek: MT8183: TS3A227: fix build error Date: Wed, 3 Apr 2019 05:05:01 +0200 Message-Id: <20190403030501.25140-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building CONFIG_SND_SOC_MT8183_MT6358_TS3A227E_MAX98357A=m the following error pops up: ../sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c: In function ‘mt8183_mt6358_ts3a227_max98357_dev_probe’: ../sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c:325:13: error: ‘struct snd_soc_dai_link’ has no member named ‘platform’; did you mean ‘platforms’? dai_link->platform = NULL; ^~~~~~~~ platforms Rework to use 'dai_link->platforms' instead of 'dai_link->platform'. Fixes: 11c0269017b2 ("ASoC: Mediatek: MT8183: Add machine driver with TS3A227") Signed-off-by: Anders Roxell --- sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c index 2da56232a9e1..a50c6af5c945 100644 --- a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c +++ b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c @@ -322,7 +322,7 @@ mt8183_mt6358_ts3a227_max98357_dev_probe(struct platform_device *pdev) * the "platform" will not null when probe is trying * again. It's not expected normally. */ - dai_link->platform = NULL; + dai_link->platforms = NULL; if (dai_link->platform_name) continue; -- 2.20.1