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: 10882903 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 1AD351390 for ; Wed, 3 Apr 2019 06:56:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03F4E2866D for ; Wed, 3 Apr 2019 06:56:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC1D12896F; Wed, 3 Apr 2019 06:56:07 +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 9FDB22866D for ; Wed, 3 Apr 2019 06:56:07 +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=Gssx3Ta41lY6C/RINyvn3oNNnkMgDOYWV5qnumdlde0=; b=H45uXM/odN2JCc oGNzVACGvb7C+zSjPznXFlV4voSM4KXFz4VUdVmlAGvigDAsF7pEOvB0PzS/6lnxIdptEHdn36miq FTDQWjTL1tVlgHANTbV4UPXDph6jEY0MaaYz2QGFw9fXfSiCSCXCX/EkQKz71FvraeXDEFLuvSRDy Vg9QJF0Kjdw5uZzLUtCZ0ubiT8ka6JYAjauPadcUadnUaQjvQWSPUjQyrfKxPJ8CTKfvjspC92sKy qYB0rfscl/kxrBpvZFa3FSunGh9TQdDTQi7lcSk0CeIDqhJTKxStZxTWkVd7nQWFplQnoqzBIESyH SLNKRR0oF0wpofvdbwHQ==; 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 1hBZoc-00064T-JZ; Wed, 03 Apr 2019 06:56:06 +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-00063K-FA for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2019 06:56:03 +0000 Received: by mail-lj1-x243.google.com with SMTP id k8so5423030lja.8 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=nDae/GIsyniDu1I3E/vjVmBQLkEkBq1BOK/yRfRxuDOXc3XzE3KAy9HhEpeyURafbC 9KwblCN+XUb9mdEz0X84CU0YgetGE57VBzhcBudboum6fQucDyMcZ/sohB1FvjoUTVNH 0baBSJlPOvBvkDMveKBoLcoyQQrdDzgPpSfj4SnSuzWL3Laup/wotD15E1ybyK03obeR 85S2fA1QIjwDnIgEJNo6LOY7im8Sswq9ocI7VIqq6lGWQ/w3BTbvim3uZd3eV5kdI/iJ DkSHhWzs+2s6QCULtf94QzSRjHuQM61rvhGZOxo3V7tFe2y/8soMjIz1AKKL0sILKbIp HX/A== X-Gm-Message-State: APjAAAWibLHcdx58ZIZB7LO5vWt+spiLuH60vZoYH5D7W5rCeWy9+WLY Mrh21SdCI/rc23QqNJXZvm5Gog== 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_509730_976E398B X-CRM114-Status: GOOD ( 12.89 ) 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_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;