Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp739083imm; Thu, 13 Sep 2018 07:04:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnFHYTfdtUEPZeBtQi3w27nvwE25sAUsid12w1uUtsEh8aByKNLIIhQGVRgNbSyty65KGu X-Received: by 2002:a17:902:9a0c:: with SMTP id v12-v6mr7576927plp.159.1536847480047; Thu, 13 Sep 2018 07:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847480; cv=none; d=google.com; s=arc-20160816; b=lNbUqenDzPZ15cN4Bo8e9sceGhQAKx75pDcPuXmVEDp0OmFuu1IcFoAzIGP4n9cNCJ EfSRFLLrOQ1Ni6SUCN6+N7DgXduXoEGa+I8kx1jJCUTmL6UpW6Mgw4rqNQYrzIgr3pCb IoDIVxYB32ZA4TzyB1+K3lerUycBGeTxdVgEnEbxEg9+a36RKZokyBrQCta+iYHyyd98 5aTWrL7jJ/0M1bh8aToWO8htvBePU1lFSy6noLHZ7e8vyZ48uFUXEobO1KvsMs/pVWIU 2z/iGovbf6hFQ/BLBPSUOIyqKviaX4kioH6beKx6qY29gmE1Tnrw24EWrtCZBjrsdGzw IKeg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=iDam3vA0chxV4xizKFbOC1fnmgYZdjjVWOmpeHD9ulM=; b=ZCJDN8givrxyBrS7V60W/gRvU4S/JvYI1W2iHUx7STKlVjw6U1XtERMXEg62I+5LZM j6qA3mBlVwUvKTxge945BKqox5d81mKcSafHGQHRe5Y+/zmCh9xqsOlfZuY+gPOmHExs aT33vK0PizsNIeHrQ+qtnIJHJm014nFNin8unWlC1vCYP4sKqRj5OixvAKkn0yeekC5o RE0P+beENIUUKGm0wi9fwN7kH57PA7vFVXv1OodEcLH7ZB8f38ldq8wMn2DRqI7zUVdx rkwabjwGnr4qKhmc2Fkn0RnI8El8kmV9g01dvCfK0DKUBh2zI2L/zaWHFqJC7h6tv3kc 1Lrg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13-v6si4167128pgh.642.2018.09.13.07.04.21; Thu, 13 Sep 2018 07:04:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731933AbeIMTLq (ORCPT + 99 others); Thu, 13 Sep 2018 15:11:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35148 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731470AbeIMTLq (ORCPT ); Thu, 13 Sep 2018 15:11:46 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7A57DD2A; Thu, 13 Sep 2018 14:02:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Guenter Roeck , Andy Shevchenko , Mark Brown , Sasha Levin Subject: [PATCH 4.18 114/197] ASoC: rt5677: Fix initialization of rt5677_of_match.data Date: Thu, 13 Sep 2018 15:31:03 +0200 Message-Id: <20180913131846.109883858@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke [ Upstream commit f861e3e28a3016a2064d9f600eaa92a530b732b4 ] The driver expects to find the device id in rt5677_of_match.data, however it is currently assigned to rt5677_of_match.type. Fix this. The problem was found with the help of clang: sound/soc/codecs/rt5677.c:5010:36: warning: expression which evaluates to zero treated as a null pointer constant of type 'const void *' [-Wnon-literal-null-conversion] { .compatible = "realtek,rt5677", RT5677 }, ^~~~~~ Fixes: ddc9e69b9dc2 ("ASoC: rt5677: Hide platform data in the module sources") Signed-off-by: Matthias Kaehlcke Reviewed-by: Guenter Roeck Acked-by: Andy Shevchenko Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/rt5677.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -5007,7 +5007,7 @@ static const struct regmap_config rt5677 }; static const struct of_device_id rt5677_of_match[] = { - { .compatible = "realtek,rt5677", RT5677 }, + { .compatible = "realtek,rt5677", .data = (const void *)RT5677 }, { } }; MODULE_DEVICE_TABLE(of, rt5677_of_match);