From patchwork Wed Apr 3 06:55:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 10882901 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 4E1781390 for ; Wed, 3 Apr 2019 06:56:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D45D2866D for ; Wed, 3 Apr 2019 06:56:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20E4C289B3; Wed, 3 Apr 2019 06:56:06 +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 C78792866D for ; Wed, 3 Apr 2019 06:56:05 +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=PI5XIqBCZJulHXWC9HKjvpgDfBL/2NwVV2t39Ua4I4o=; b=qNhADyfHvz6cwe dk3jY36W+U4MijjfVDAuDkJyjiwPDastZigLXF+7eB5Z2MCnAXz02x91Wi5wAbo3xe51Mw11Wsfue qIvU9lhD+d8EtVKKZ2O1Gf+Ya8S3z78Che6ZxMQbmh3cfRVAJZJyNirZjrHYbHTfEprSEjHuMeSc1 GvD08l2HgWdsKg51ObLcjX0n9RybIseuA/gPYkq0KUqqYpPs2dGiYOgkTqWhVGISRQOrlKtVb7OeM +cEs4DFySOiMynPVjiA0ARmTjEcW5L/rJbcKbjJry6erMs7eUpHQIbc1tFlVWDQ+PgMH7/SQSrNWi yrjlH+R+HmEmQgi/KrUg==; 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 1hBZob-000642-9g; Wed, 03 Apr 2019 06:56:05 +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 1hBZoY-00063J-F5 for linux-mediatek@lists.infradead.org; Wed, 03 Apr 2019 06:56:03 +0000 Received: by mail-lj1-x243.google.com with SMTP id h16so13780403ljg.11 for ; Tue, 02 Apr 2019 23:56:01 -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=I6nBKwdpUeXgOaBDWhRUmhQnAUSDUDTdXm2H5dVc2Qw=; b=JCwVzhUnie7ynLFL0eGk6kAglbhANXSQCHCfNLYKEPVVnPZMfO0v7im0un6+dLtpmT OuXUbLgOLF3KHR3GGJhDb1ZbDlEhn8OeLQtByd0pmmCNRwTC3RCRnPcoj6u4SJtu0u3L mrvOzy8GlYpqMJD5XiKzAwYpvSu7KIhghj+rmTZUWic1i4TB8TFrpGX3WavPNJLZ6Lb8 gJFvQpzOJ8ufLt1BR938R+v9OaDDFhQTKSMc/Jmd/JyM/mhUMigFj88z+OfEvUz+5P9C 358PomxACBRAJDd/Ijt0FZp4Dy1QHSfprZZhs4uHOmRFuyEUi6+CaJdVSRS3cWhtsW27 5ySg== 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=I6nBKwdpUeXgOaBDWhRUmhQnAUSDUDTdXm2H5dVc2Qw=; b=pb7j2L9QzMEgiiw8U0+YZ6sFGXPndYVp8nka7g9bDT+BZkX9wvhhQZ9kJ+GR9coy2g Eh6yw3+Pz/HkrQnMecdaqhU0DDfTbWE84PxEF/96k27LPbW7vlYGrsIZuPe1/J7mG+wf 04Q7x5+2isHpqFabEUlI1XYQUMKsSWajVQt41tPEq2C0onCUCndt2q5Tov96JIIQATpv OT2swahauCv+llOnDk7+nu6jtzdtwXmpf+naGEeWghkWBdSVVQ1lKA9dmpH2URPgLMRN zEKpFwFV92PXqaAeN0DvfI8Ow6d25vqKjWR3ubB0Jrvto3k1VcCbijB7WhgeoKL4uj0r 1mMA== X-Gm-Message-State: APjAAAWbyQqMUfj4ymhbm5OxzZh/wM8fkf4CvnBCOr+PSxg28Ltk7iPh hZpcZSUVnkpCOezA4SLTMC6zgQ== X-Google-Smtp-Source: APXvYqxlpaxZyjKugyhYttDEeO/n1d4OeGlVbovQ9CgbDa4n9N7BKuuKJB1yx+LiEuCOju6MhS0QMA== X-Received: by 2002:a2e:84ce:: with SMTP id q14mr7838919ljh.80.1554274560128; Tue, 02 Apr 2019 23:56:00 -0700 (PDT) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id v21sm2788168lfg.26.2019.04.02.23.55.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 23:55:59 -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: DA7219: fix build error Date: Wed, 3 Apr 2019 08:55:47 +0200 Message-Id: <20190403065547.19382-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_235602_512519_50077F2F X-CRM114-Status: GOOD ( 11.24 ) 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_DA7219_MAX98357A=m the following errro pops up: ../sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c: In function ‘mt8183_da7219_max98357_dev_probe’: ../sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c:413: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: ebbddc75bbe8 ("ASoC: Mediatek: MT8183: Add machine driver with DA7219") Signed-off-by: Anders Roxell --- sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c index 93536659a859..1e7e8aed8707 100644 --- a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c +++ b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c @@ -410,7 +410,7 @@ static int mt8183_da7219_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;