Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392204pxb; Fri, 20 Nov 2020 08:24:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiYN6bQhPJ8nYQbQ0P1NPXWtQ0VsTM8mY9dHZYBD2TRXe2L+uIwfbCXhqccZsFGMnQpDIJ X-Received: by 2002:a50:b224:: with SMTP id o33mr34828348edd.21.1605889441756; Fri, 20 Nov 2020 08:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889441; cv=none; d=google.com; s=arc-20160816; b=tNP16kOmVAb1Td2cy87rAECejMAp5nP5LPvjx+f2ZLm3EyAkXIMIPYuXA6TepVjnHb 3NNUhObRD8yh1MDtkAzecyjbsvBHj6b5em4WwrbHF5/n03fY/PllSpLG7Inhc30ps8gD v6SJCvTuUYLGxlAu0ERrVZHXvdbP98jl//eFE2ATo9n0xErvD+f1raMUXrS+NrqoZETh 34ZS+ADM2eYHEoAx12EH7ZLZLp8hsJmNyipfpVoZdUhiMaQ8t4t1WJTKGRlppCfK4Q11 pGX7s3ZMyvEv0X0pae7i1dxnl19RImi5jQD55Xv+mrPVUx4WSHLM1KZKXbl8krYpn9Bh 2ICw== 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=JsqQs+pq8YB97l2nFzaZR+3xGgi7wsVhhxFhwmZ9UyM=; b=ZnFLa62w67U3aqlh4tQ8j6PTXPi4WXBjGQL0z5sfLRWS5F7MPAy+fXFQ8IL7V19nwp V5ZR40FDOl0FQjJXkF+tzgNm2R2Udnt4+uktQrLxXw/55wWX82xtHGVqvqGW8dRW0x4M JZzRGNvUhSSW6IkifS39elm+AMVs44tRtCO+MyD935PC+Q9hyRqAdwxq7Nw8+3cWvHsr RNUYbVU4zzw3kbMm2dCPSf02VObuD7VsaAeTZd4a0sfg26yCyBCnifZSHfrB17VWD8Ss ZwtbHKjDrY45fbQUfw368hnFZ0aiqeZykDlLX28ttSDtGaNzgSYHw9H5k0ICZMEQRksS gq2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1D9t9V3D; 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 g13si185428edv.398.2020.11.20.08.23.39; Fri, 20 Nov 2020 08:24:01 -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=1D9t9V3D; 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 S1729613AbgKTQT2 (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:37058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729595AbgKTQT0 (ORCPT ); Fri, 20 Nov 2020 11:19:26 -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 7F48222470; Fri, 20 Nov 2020 16:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889166; bh=Qndidju4iqoGNSvs1izHnQ1sh03cOOHXUD8yp7FDt+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1D9t9V3DBrMGyMiXQU3R3v/lY4f6xyNxyzJy4Hwffs6GjvZbWabQ2SEzNBxNFGLaK tPDypw1QTeld/0tObG4i4A1U+HiZyWQ2xgFrPDP9pMpcgrPTvdO7oVBWTVqp1DDs62 POaA8HtpEmo0iQrtAmf5YKZPthkkJagniEch9CHA= 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 , Dan Murphy , Kuninori Morimoto , Jonghwan Choi Subject: [PATCH 29/38] ASoC: tas2562: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:43 +0100 Message-Id: <20201120161653.445521-29-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/tas2562.c:805:34: warning: ‘tas2562_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/tas2562.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/tas2562.c b/sound/soc/codecs/tas2562.c index f1ff204e3ad0..19965fabe949 100644 --- a/sound/soc/codecs/tas2562.c +++ b/sound/soc/codecs/tas2562.c @@ -802,6 +802,7 @@ static const struct i2c_device_id tas2562_id[] = { }; MODULE_DEVICE_TABLE(i2c, tas2562_id); +#ifdef CONFIG_OF static const struct of_device_id tas2562_of_match[] = { { .compatible = "ti,tas2562", }, { .compatible = "ti,tas2563", }, @@ -810,6 +811,7 @@ static const struct of_device_id tas2562_of_match[] = { { }, }; MODULE_DEVICE_TABLE(of, tas2562_of_match); +#endif static struct i2c_driver tas2562_i2c_driver = { .driver = { -- 2.25.1