Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1391930pxb; Fri, 20 Nov 2020 08:23:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLY2AJeyg3L2kiSa4GfR89kmKnGFZ/B0a2Wam5eRUahqAkIF6LXFrwcl04yUBMDpCBXdvA X-Received: by 2002:a17:907:2166:: with SMTP id rl6mr33841822ejb.61.1605889423650; Fri, 20 Nov 2020 08:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889423; cv=none; d=google.com; s=arc-20160816; b=yqepGJPykLcBSmF5gG/NtNmkdzzEcjrfzQ4+Xb3puiNHWKolal/0rxBcBXhJFuGPzi 9FGI7MwRElGRhwn/7oo/YNy7rrVeYCMyjlhy4TvzjXCaWaOEeEa+FI1ehCozYjnI3eSh YeYGnweJ+rnpVFqOTmsGBji7jF9Zw1zwnB1PHP52UX18r+MgGmtSHWarxyay2p0heF6t TCIGiUpfxzF4/vdXgT8oLPg3cKcxjy46tknsn3T03BdJ697TG03smekBXWiaYzj7iNCG XHS6b/CNNVorVvBxxQ1SPvc98icsoP8ldPL+TvJo2Xy4RfT3G6KrM8J9qgxt89uUzZh8 H9NA== 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=ZD6SUq+l3VPdFE3+BCuJEvjErV9S37htlvv2ST/3RN4=; b=FNad8Q8Egj0NDUeGai65cUUvMnalP9pFdSs0Eq72Q1fnt+rUwIjDt+oH/O63PpKdCh DcEQczh4J9NiXYAna1wMxL++BrapK2qcKd7BBMmTyhBWhQ7OPk6RQg9zoGKgGHT3+QBW 3o3xfV19kFVQeddTjajiYNpqIV5iwl+PCQuU24ozz8wz/vdAixkmXvNmD/ri4QBLqtod 4MJO9hMXcSG2uGsoe79hSLTBLdtef4Bvpaa+0LRPEFf8y2dGxwXFU0GIZVJhC8jeVpA/ 7qiYNtuLNs3icm9b0eht7rzMhed2NW2bJwYMo+fmd285u21P7z6Rp1cPZFzCwgdIcJIh R1Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V4WsHIiq; 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 n17si1817401ejh.609.2020.11.20.08.23.20; Fri, 20 Nov 2020 08:23:43 -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=V4WsHIiq; 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 S1727750AbgKTQSd (ORCPT + 99 others); Fri, 20 Nov 2020 11:18:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:35302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729080AbgKTQSc (ORCPT ); Fri, 20 Nov 2020 11:18:32 -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 66315223FD; Fri, 20 Nov 2020 16:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889111; bh=0HugLJZa8zS4Le6aM6WdEG5ldLVgwL6aMNqW9XESAyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V4WsHIiqUTGnjcpfkaCLf2SIVQPqJCkTuJcVG9dBcikacJujLkakkWoWFU8LKB0YJ kCiZFWoSSlT34pjSDM2iENswJzkt+hZuegWwUHREkcbqYKpBd7E6OY3qNhRoK7LXmL WiSxJklRnv+aTiMxJnmMtnVFonJDqm6G2dIF+NwI= 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 13/38] ASoC: ak4118: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:27 +0100 Message-Id: <20201120161653.445521-13-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/ak4118.c:407:34: warning: ‘ak4118_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/ak4118.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/ak4118.c b/sound/soc/codecs/ak4118.c index f44d9a4a8507..5d46ae85566c 100644 --- a/sound/soc/codecs/ak4118.c +++ b/sound/soc/codecs/ak4118.c @@ -404,11 +404,13 @@ static int ak4118_i2c_probe(struct i2c_client *i2c, &soc_component_drv_ak4118, &ak4118_dai, 1); } +#ifdef CONFIG_OF static const struct of_device_id ak4118_of_match[] = { { .compatible = "asahi-kasei,ak4118", }, {} }; MODULE_DEVICE_TABLE(of, ak4118_of_match); +#endif static const struct i2c_device_id ak4118_id_table[] = { { "ak4118", 0 }, -- 2.25.1