From patchwork Wed Apr 3 03:05:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 10882603 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F01C017E1 for ; Wed, 3 Apr 2019 03:05:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9C1028950 for ; Wed, 3 Apr 2019 03:05:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE387289D2; Wed, 3 Apr 2019 03:05:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8E1D828950 for ; Wed, 3 Apr 2019 03:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=24Ypmzv+X3Tp5SVXzKaePMrPEQjtDPsG7iXTgja+3Wo=; b=iuwXOQzyXGBqbx 0Pfv6VqtoKVXLmv+T+y26l/xRYDg7VjlPznPQl6pee1gFPWmZG6EP/0jTD7i/JMqipBgePNIT7CMH mMp/Yemat8w6L4C/sW/bzujkrPgpUgODoMXhWaSOANZ9gnobOe1OKycHbd8QbTwY20NQgoDJFadoM N+c3i6IhA0H+8N2JN/J8qunMMHEHR0ioVUWnXsviPb6YU9bRu4rAd2te6RGDm27hOHgVWGjoQIOuY uV92/r8Ix+6YW1F/Bjrn2d4SpqXPubIYJ+19W3d47y3B6Yzv4ruQ25bKqqrxH4O/LNpM3B5c9uj9T 2z/MUNp0IUg+Ja3AENIA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBWDH-0007Ah-Mc; Wed, 03 Apr 2019 03:05:19 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBWDD-00077C-9j for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2019 03:05:16 +0000 Received: by mail-lj1-x243.google.com with SMTP id p14so13449896ljg.5 for ; Tue, 02 Apr 2019 20:05:14 -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=YST9kr6Ol89ESO2lzdo20EI2Qz8QXKM57o5ft66CfHmrY++ZZ7mFNcjQFkfzPcCfwb bAraDOeiYfmLsB1RDXOnyugs0qjERcKZaiz6CTVdU/RsbJ7iKvNf7kXj6dfQzhcGujKC gDxRTpvXGkmX0r2NBLc9b6T30oMxBpm3rQd4aIN0r95x0PXZKU3KUItZiLDXVFVSIngD 59QbuvtqleEsxU8oJa/zRtYyDUx/u0XDEr1bnln9e5Y128x83Twug0Gn4lzpytYyBWSL wqL2HNedxrtzqA3E6fAyTAuHZ/MeVA2tbbRkZrC20AiDxjCIfZnz8l6HhuGCJta2KMFC YHkw== X-Gm-Message-State: APjAAAXLLpEJD0QFuTRoV3JEC9ftMyLJSTXKk+HPH0wFrYU6RC/zUcmS xjrOXGYFbMO/gJclnq82w9AGWQ== X-Google-Smtp-Source: APXvYqx70dd7TTJX6o1znFNPQdCD5tqI7b3YVMr+Mo0A/SzongecYOnCGBBs1FilschRPquiWiqJWQ== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_200515_379051_DCADE90F X-CRM114-Status: GOOD ( 12.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anders Roxell , alsa-devel@alsa-project.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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;