Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1390826pxb; Fri, 20 Nov 2020 08:22:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqlnkLPjxA56GmwVM4Z6T7CroPwkcEfw6RHwD7U2fUBc8viJbC/DID8S0KUjLnF0Z0SWaJ X-Received: by 2002:a17:906:ccc5:: with SMTP id ot5mr34364312ejb.248.1605889327519; Fri, 20 Nov 2020 08:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889327; cv=none; d=google.com; s=arc-20160816; b=Vimxqm5x5g7RMGxOaIJ8ZmDIcZSPZFu0fISSmvPbHQpKE66E2sVsdVpJru/zzIeqZY GCWj37IQUbWFvbI/IphW/myJWmZGvyqPQKADbah8nhSJ+HWrBGVf6EHuCKXkFlKbzT0n F8B8jg7G3fJWzyGp1W1v6+krNBSZIlMJEpUNuimV0+W+s9DYRWwukxtxKEJ9sUTV9fRD unBjyW1A9134Q75Eyi8vCdTMv1UfKC9tLjhi5jaGRscGzGIdWeBLf6ulpJ8mqOz+GAYE 4/gh9WDhdA3BpvX2G9r0kAYikkV9znrwW1tLO3Blh3469/GhLKNutnlyHDwPv7dSn17v Vo6A== 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=aQR/OAjgzULhZNHYDsR2LdB6e7gQhRqvq5+m/1iOl3k=; b=HGqjQGBy6Ir4iGusOcLe+hXu0WAMwWPDU9SuvPuSV4kmatIcaex6x81rlqvJAnm90G fxZVJHGsARpan+ogbCvMHdDMHWedToWC/kO+5xJ9LAhuqJV4OFDMtvPwpQNTM93RC34a Lr5KMlZg0hEFFNW6pas3KOU2tP7q0UMYHvLh8znK26AEsspl0zjcFiG2ujdpo3LS0AOo Jp6QVEBm8P15xpA2Fy1Tfs3Bro3pLFCIQb+XPWQNwZL6PPZElD5Oss11OqKjbWo8Rhga mflNY+Knw22EWKafcmpRlkL7aJU3s7sP6uEC8ZroxbQtJqLQUtlbIinRNb1LU3nJwxxT wo9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bQbjYQRW; 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 wq10si826772ejb.487.2020.11.20.08.21.43; Fri, 20 Nov 2020 08:22:07 -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=bQbjYQRW; 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 S1729588AbgKTQTZ (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:36984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729571AbgKTQTW (ORCPT ); Fri, 20 Nov 2020 11:19:22 -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 DD7C42240B; Fri, 20 Nov 2020 16:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889162; bh=4TwJDhvLUQ9SarMg0Cg8dwFxEwAJn3ntoVUmPHve+a8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bQbjYQRWXtkm2LqPEMITYBQqC8mE7SnZGwJpgscBOVLO9OrboHAHN/HBTnINhd8Z/ lXKVsw2rnxTClNSsqNs2VwPlXc1J/nE91Xi1glAoDtibCKLuBIfhnOBkE9hRe+7azk WbC/jguJyig9x4xWfUBBPGFWWjTg1g3aFY5yX9Gc= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Oder Chiou , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 28/38] ASoC: rt5660: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:42 +0100 Message-Id: <20201120161653.445521-28-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/rt5660.c:1238:34: warning: ‘rt5660_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/rt5660.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/rt5660.c b/sound/soc/codecs/rt5660.c index 9e3813f7583d..0edf09d3a499 100644 --- a/sound/soc/codecs/rt5660.c +++ b/sound/soc/codecs/rt5660.c @@ -1235,11 +1235,13 @@ static const struct i2c_device_id rt5660_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, rt5660_i2c_id); +#ifdef CONFIG_OF static const struct of_device_id rt5660_of_match[] = { { .compatible = "realtek,rt5660", }, {}, }; MODULE_DEVICE_TABLE(of, rt5660_of_match); +#endif #ifdef CONFIG_ACPI static const struct acpi_device_id rt5660_acpi_match[] = { -- 2.25.1