Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1389628pxb; Fri, 20 Nov 2020 08:20:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvA8nJ9w7nCRKgozHdb22N58UlQ8Hogr2cpwyabAMCKtYAGkydIvc7Jz3IWP9cT+aed6/F X-Received: by 2002:a17:906:4059:: with SMTP id y25mr33637307ejj.498.1605889229357; Fri, 20 Nov 2020 08:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889229; cv=none; d=google.com; s=arc-20160816; b=uIyELavdDdL8DGmcNbh7nu0FzIJvh8PFi1jr7t2ZggoVBbG8XdPD7f+Sj5+WNcWTNy GPOs653fL7JpsV/6Gcf/hVEhZ1GoDD2gyzw77PLr9/Vrk3DWOINyx4WHjNYprZtG612b geaGFVW4D2/Ruqmt5w1waPfjgTfwWURVRZ6zRSHFhLmAeHS7v6hENPEewhBq5Keq93fe P4SDPmtZN0Q7NvyHDgR2QSeswfN8q9Xognq5QgK/Q8ZVYdJQ19MEONBq3afOO8WdvSFs IRxkbHQMXjpDry3MQ5n/RWcoWGFIwrdDPi1XDWUw07++fR+ZQPnVbImUDaJgDPgI0oMO V+PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M+AWZTZLJQeXtvvj2vewJdmf3bUKn1gDFs1umPIBj/c=; b=i2BPZTcW8cqREn5Jfajv9jKJFbekfON3ul2fgIy8GwThVjOwRNYzcpTQPfDo9k6tAq s9FfwKucjaITp2YZmQPm1W4JLPOlXYRosXZ5YEfvzXcEtPrAW3jcxV/DtCd35Z7GhWe/ rSf6AgSN/O0UZe6bYvMDlsM9BtXIHMPno+m970Y1PgRNmUXZLUtfvQkewFoYngRl7kDH 3rGkfoNGj03MlUZqPAoYl0QkwISaavYsZ+BxKy4tqNEsRS5uL01YmpOxKjTjQeUeqlb3 NP1rCGdGDqLQt15lT89cP2iYsNosagamEx2Y+qeYt37TOb/x3QXnVQUSUMLyVjhkVl/I UKuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nY2He0xq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si2073595edy.248.2020.11.20.08.20.05; Fri, 20 Nov 2020 08:20:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nY2He0xq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729053AbgKTQSS (ORCPT + 99 others); Fri, 20 Nov 2020 11:18:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:34936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728980AbgKTQSQ (ORCPT ); Fri, 20 Nov 2020 11:18:16 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E0E0122470; Fri, 20 Nov 2020 16:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889096; bh=/DycQ1hb3XETKxcgJtqoZZmUGffDzYpw1TgYfDhw+Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nY2He0xqB6LFhFYyPcS/lCdJ7Gs5C/ZsLZcQ7YZDAWcZA0pnLFldy0K38izU6tUaB +DFPOLMDCabAhy6KlnmE6T5+1EodBP3+38ktnvltT3JuIbkuYuNyPu1gcbOvjBnA7P yzf3B3LBriY2xJev3kA2K+6Oehsl7DdKJx1Q0Khc= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Sylwester Nawrocki , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 09/38] ASoC: samsung: smdk_wm8994: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:16:23 +0100 Message-Id: <20201120161653.445521-9-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120161653.445521-1-krzk@kernel.org> References: <20201120161653.445521-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). This fixes compile warning (!CONFIG_OF on x86_64): sound/soc/samsung/smdk_wm8994.c:139:34: warning: ‘samsung_wm8994_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/samsung/smdk_wm8994.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c index 64a1a64656ab..696ab6abd1f6 100644 --- a/sound/soc/samsung/smdk_wm8994.c +++ b/sound/soc/samsung/smdk_wm8994.c @@ -187,7 +187,7 @@ static int smdk_audio_probe(struct platform_device *pdev) static struct platform_driver smdk_audio_driver = { .driver = { .name = "smdk-audio-wm8994", - .of_match_table = of_match_ptr(samsung_wm8994_of_match), + .of_match_table = samsung_wm8994_of_match, .pm = &snd_soc_pm_ops, }, .probe = smdk_audio_probe, -- 2.25.1