Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1390729pxb; Fri, 20 Nov 2020 08:21:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVOQuOdyNTUD0B7++uazoKIpk5EI2Lr5yU0A3Zz+Oivfq4DCDZm+jEdXB+YpM1Q3cl5al0 X-Received: by 2002:aa7:cb52:: with SMTP id w18mr27670130edt.362.1605889319207; Fri, 20 Nov 2020 08:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889319; cv=none; d=google.com; s=arc-20160816; b=Kd8tZaDvrQJY2qwczr2Z/gFWAQqBbWdR+Sff+uUlGJMvLu2IAaqruejMHUgcw+gf0Z TBtScR6e0rYKYuxiE7uVfsAR0CL2jjbDMQfIRPSWaS0htV20pdvV1uyFsv2rrI0JsuqH D1GO79y+t7wxD1zITTEJ6ZqCjRHaqL+3gv8KEOqXHF8DL4B36rm+QoXVXgsV4Aga9+bP COaY5FZuENOuJjMG+cYaEqGQjvI/NRL9Vw7O05SlUnYL7rj0NKpo+rfKeT5uFvXR3b5z GCsqVTppLEIyL6zia5dvHGsFhOQGpaU+QlDydkREhsjGZwoyolUQUH7XC9N2lFDrsWBq dQLg== 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=jnUnryWaMZcpnc8Fkkb7LX70obdguLFVXLNZy9FIpE0=; b=WK7ke1/DlZa0mMJZN47lBc1cP7rpy0S8wyU17z2/OOmqZK+FVKZXvQVqtGBPKXUCNv nZKmCoFBba0+eF80L2ALmT2GOxQZPTwoj0bNhZb3hyuL97boeNn/mCRurT0TtR5ju9ZG YNlvaJgfiwiNiMhPNN5376ltQAQNyePXmkFMaRM79WZd7hyK7ohU8ggCCWLzxTCji5B8 8WfAojAXLgmQ3viHOa/cCoZP9FLdj2dXoA8gn0x7iJgXUROls2BCdUvXRD81jOha87Ie WoJWkAGdGcRZsxnNZGYEeorCivy7GhDAqn425H3lVwtR/PdJC3VOpiRj0oYz1Ry55pyk fT4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HAmJZUQt; 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 x10si2097912eji.86.2020.11.20.08.21.35; Fri, 20 Nov 2020 08:21:59 -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=HAmJZUQt; 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 S1729575AbgKTQTW (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:36942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729585AbgKTQTU (ORCPT ); Fri, 20 Nov 2020 11:19:20 -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 B4543238E6; Fri, 20 Nov 2020 16:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889160; bh=+j1OMI4byGz3lhkFhbKgRErhPASUUpHiO1mBssgMMAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAmJZUQtRR6NeoLmC45vn0OLu2Hghp+k74GpwUVn4mFlh0HOiVp3CRsIXmowF19l4 XB5k10Xi+YHf1YkVsT27vAHgZtKOdKUncqHqgwi/1xknpYMqinDkEfQ4SIeho0c+Uc vOySrgXO3ZAnKUThh0gMqSQ6IyjHyIH0/8aZroMo= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 27/38] ASoC: pcm179x: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:41 +0100 Message-Id: <20201120161653.445521-27-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 by multiple methods. Its of_device_id table is referenced via of_match_ptr() so it will be unused for !CONFIG_OF builds: sound/soc/codecs/pcm179x-i2c.c:33:34: warning: ‘pcm179x_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/pcm179x-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/pcm179x-i2c.c b/sound/soc/codecs/pcm179x-i2c.c index 36e01678bef4..34a3d596f288 100644 --- a/sound/soc/codecs/pcm179x-i2c.c +++ b/sound/soc/codecs/pcm179x-i2c.c @@ -30,11 +30,13 @@ static int pcm179x_i2c_probe(struct i2c_client *client, return pcm179x_common_init(&client->dev, regmap); } +#ifdef CONFIG_OF static const struct of_device_id pcm179x_of_match[] = { { .compatible = "ti,pcm1792a", }, { } }; MODULE_DEVICE_TABLE(of, pcm179x_of_match); +#endif static const struct i2c_device_id pcm179x_i2c_ids[] = { { "pcm179x", 0 }, -- 2.25.1