Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1391798pxb; Fri, 20 Nov 2020 08:23:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvF9jYJuOxsrmn2d+J4fAc4eeZ0oGajt1lSlEntsoT5Wdgt5ptPlq+ufJ87M3jn/qbb69Z X-Received: by 2002:a05:6402:2365:: with SMTP id a5mr3482962eda.268.1605889412229; Fri, 20 Nov 2020 08:23:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889412; cv=none; d=google.com; s=arc-20160816; b=WMoxBa3pXU6ZcvR6bai5YGYWRwcuisLne+LtSCjM2JePI8VhJdN062hqd+iWUgtIci G//+ybAGyUHSUos8U8ZO9H3yY5tRtfOHxbD2/DxdVrlbfwX4j+Z3Ukd5fw45fAbqfxyQ dqe7TTUO9PLBvyjLjE7bo4QRxlFbGrMfWdPXaiqSZfBrzU0f+dVi8u/Vpz8r6VzO9svM i3yo+zmjIK3aQTUDx5bKch35pvW/t9hfBJ85oOD36rRKI1AuLV/Wu28v5MciJw0UTNN9 SzDDl7FralFM+AQua5EVaEHZb5PAPWHh9wdpula5lX10gF3aRTJy6gjwysr9eLDrwBz6 2++Q== 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=oGBcRKE0sZ/PqYq5kTv6WW/7jDyd8fEn1NE0YzMfNfE=; b=F2mBMChwp40ZwNGmUI1qZKyOIgk4RxD/Ej+Wo2FlpZrO6rabQKpfu1gvADTKVIqJKI BMEgpvlMgjOC9rUwLbpDjiXdWaiZojVHV9UvkgFUwk2vMMFymKRNJlmyxaINk2Gd5c3a Hft6YWFs6EasXtoG89a6kTOS4Ev22BlV1da6p09bmVmVPUU8udYliZZubkRL/M5vhbNi icXRPGkdjeO6ERh/dTSTSeSH+DnMDtDWRzTdSqWawesALTi/8B2vRtwPKrDjIcpr1lRs Z0CAXYqyFnuksLvkvCSDmOJJPUu913qP9Yo6SbX4inxb9iGglXhZBFkI8/ym63+uBfjX nf4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Iu2G6q/l"; 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 gl10si1926653ejb.138.2020.11.20.08.23.09; Fri, 20 Nov 2020 08:23:32 -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="Iu2G6q/l"; 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 S1729335AbgKTQSn (ORCPT + 99 others); Fri, 20 Nov 2020 11:18:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:35662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729317AbgKTQSm (ORCPT ); Fri, 20 Nov 2020 11:18:42 -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 48E56238E6; Fri, 20 Nov 2020 16:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889121; bh=sO3ez0EZ5UNNfG4j2+8DCfucIft1SFisc/XRA8bljPg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Iu2G6q/lFfrOFsxMq4VY+LtkGiDw6vywWtAHTWo8BJpJ35bD23Z6Wk4nM8YbTsefq SjGUZM6xEW/6Y4PA14wQ1VBy+ZEiRo6de7xR5ddPh8PUm0yVk9r6BHMD3Du3u7vi2W uh3oKk+SOCq24uPaKwce9aEdv8Qzj/E/ydvtZM90= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Support Opensource , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 16/38] ASoC: da7218: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:30 +0100 Message-Id: <20201120161653.445521-16-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/da7218.c:2281:34: warning: ‘da7218_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/da7218.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/da7218.c b/sound/soc/codecs/da7218.c index 6d78bccb55c3..2bfafbe9e3dc 100644 --- a/sound/soc/codecs/da7218.c +++ b/sound/soc/codecs/da7218.c @@ -2278,12 +2278,14 @@ static irqreturn_t da7218_irq_thread(int irq, void *data) * DT */ +#ifdef CONFIG_OF static const struct of_device_id da7218_of_match[] = { { .compatible = "dlg,da7217", .data = (void *) DA7217_DEV_ID }, { .compatible = "dlg,da7218", .data = (void *) DA7218_DEV_ID }, { } }; MODULE_DEVICE_TABLE(of, da7218_of_match); +#endif static inline int da7218_of_get_id(struct device *dev) { -- 2.25.1