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: 10882601 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 9A6FC17E1 for ; Wed, 3 Apr 2019 03:05:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8302628950 for ; Wed, 3 Apr 2019 03:05:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 761E5289D2; Wed, 3 Apr 2019 03:05:19 +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=ham 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 0032A28950 for ; Wed, 3 Apr 2019 03:05:18 +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=k4zIMh30SpEb6XCxtcIBluDd3Y4qwwJbwtNkE0vSPHY=; b=INWsgYIHQgfGW4 XgiZG4mgIjUjxaCNnMAMEWMUjbsMzzGgHpueOA0yO+0SXgfHVLhspWRTed66MwNqCJNEk6EMgZfIH BvpY3boxjJquoQBdyjArLxYZK4+9ZAAXZa5mGVQBCXzJRPYP0m9eJVtgP5cgQrHzJVzvVGYQPONEy wQwYihiklw82SNSd/yywpCQpnN3chWrPYr4TnTYgjGED4K5XJboBp6w6Cdu9VAN0eo8h2zu9/9gbB 7k8Bj3tjvdfUiqor/DhIaoc0wYLHsMydDprLhoS90T3SBbHHFE6KcW0DuiPPteCmvUSaZJytofqAx Tb97JesZEphLdZifJcsA==; 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 1hBWDG-00079F-E5; Wed, 03 Apr 2019 03:05:18 +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-00077D-A4 for linux-mediatek@lists.infradead.org; Wed, 03 Apr 2019 03:05:16 +0000 Received: by mail-lj1-x243.google.com with SMTP id v13so13467761ljk.4 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=i/PfLS+xv7Ri5zdVgGj9vNJSYofJk9tY7DjkQ2W60gwgO/jxHrsyJ7Wl2ec2UAY+98 HvXmJbq9m41ME+RNxLyD9MIgvtjfb5t3e4t0QiifzynfyBuses22ChbRvoFBsRwlXeFA oZxkroGkUsTQ0mdux9czn1QRolinI7qs5YgN84jqMeQZAVXqyto5E6OIiBNVCeSu92Eq P0+HqQDrELGC+iLMvhimujBK1DLb3HVyAsbnwX4QISAJZFJCWzh9NrAyr9n8sf7mKysD WB7HWVhObkUwQx5qx7+1Ez43thr69QDlnO92+/DWgHVlLpjOrq1dzbcnKGXFXtFnSjVE TnCA== X-Gm-Message-State: APjAAAVljZ/hiGAXyVgK3eGQt/+hqzJ/TciC0D6s+gx956f0RA/OLPsb kJWVDssPg/Q506jhRfPZEwOLow== 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_373565_BCFA3599 X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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;