Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1391014pxb; Fri, 20 Nov 2020 08:22:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJydAMLKRR/wtQLIVtbDR/eqA32Ri62k4x8BeQOt6ygXD1MdMIHctILUXjDEBWx394DQHtg1 X-Received: by 2002:a17:906:d96e:: with SMTP id rp14mr12895198ejb.214.1605889344971; Fri, 20 Nov 2020 08:22:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889344; cv=none; d=google.com; s=arc-20160816; b=XvzVNBuODf3ftmYkEejyhZF0CA//5ipQZw1pXRjEsb89zwXdm2+iFYjAX95S7q7OhI UolFRwkKCQNmPPSfBaCNMlP+2/dvmXHP6d+fdggAi8rcQ14Rt8+rRyRUhful1Eqb0Mnn RJPjuXjcx1JI8wbN/G0Mjurm1tODFxgUjkWmKig4cxtQQymaeBuJtUXSTr7+QweFcbuw N21Z/uYlt8kEc8gbAkO2z7MIxREqpwv2meM6rd2FWk60ftLhSBK39pd3H032fPYdzij/ hmJB3AWxnMq6sk1clxRzkCrtDyddEqpcrCJ0Qxb31U+NaOW9NzF5B76Cn53xWGoXoWKE q8Tg== 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=aWL8azB1GqIWOlOTPaoC7qvE7GY1ZmuQw5k1R0Ieu4s=; b=J0FSnFh0an0FSWGpsZP53K3wtwWhXnMqCnVEjbojG21sd/1Y1X6XSX98SkDkHZv1Sk yxyppWTOSem2UECsUbL8SNTApmHR9xyomFiVWagryDNp9vkK8jxsTdG1lFUk+lNgdbvu w+BYpL0c0gIHZ1hL6MQ/ryf5zn/lNAYPQdgPbzmAAuWj8vGPJKD7rKQ4Uqy1XT9taWxW FLBfyM24/irah8hIU5KSy6EiFvDVHi4HoGKqXWOq4iAb1FpiM/61EX5UtasVza0isTOX nsw5nDFzdO1lh1yiANak6B99t2mQs0y38AtfP50QU8A5UHashFPyuTe0jK2RtZ7b0wzD LSaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EAjomR1l; 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 b24si1891650eje.190.2020.11.20.08.22.00; Fri, 20 Nov 2020 08:22:24 -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=EAjomR1l; 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 S1729540AbgKTQTe (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:36332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729454AbgKTQSz (ORCPT ); Fri, 20 Nov 2020 11:18:55 -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 0AAC02245B; Fri, 20 Nov 2020 16:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889135; bh=pK2aXxPdlgp8adWwLZSWyw3m60lda9J3oEtug2jUDCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EAjomR1lz/jTDyJe2lPCvCIEC8I18OrztlCe1eDcsXdKbxTD6x9flsZsDNk/z/GyP GCY5upWeOINt6mbHm3h5UyJXdVvAxa9nAiLG/9DstU8uiugAbM/zoguc8Dr+Jc4zQl 21E44+uleClrd4f+O/I6QyTTgz5MCrsPetTM/+bE= 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 , Tzung-Bi Shih , Marek Szyprowski , Kuninori Morimoto , Pierre-Louis Bossart Subject: [PATCH 20/38] ASoC: max98090: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:34 +0100 Message-Id: <20201120161653.445521-20-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/max98090.c:2671:34: warning: ‘max98090_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/max98090.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 945a79e4f3eb..06276ff5f8a3 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2668,12 +2668,14 @@ static const struct i2c_device_id max98090_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, max98090_i2c_id); +#ifdef CONFIG_OF static const struct of_device_id max98090_of_match[] = { { .compatible = "maxim,max98090", }, { .compatible = "maxim,max98091", }, { } }; MODULE_DEVICE_TABLE(of, max98090_of_match); +#endif #ifdef CONFIG_ACPI static const struct acpi_device_id max98090_acpi_match[] = { -- 2.25.1