Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1390671pxb; Fri, 20 Nov 2020 08:21:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdhinM8A7pdlIDspTOQMR3xYpAHEoHzpkmNKrlXhPs4fux6E2HbHvuHlGv5BtvpWwTCwUK X-Received: by 2002:a17:906:1411:: with SMTP id p17mr34824972ejc.102.1605889314159; Fri, 20 Nov 2020 08:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889314; cv=none; d=google.com; s=arc-20160816; b=YK61x4tssXjNK5DiRXjLlCxY9wqE70mQtk/voLLz0diZKa8qgHGM4VXrM5DBzxxYCM fLOQi/2dlWh6h5FNWJwKYbCaeAaZLwND6x/K5I5ST9AkM9q9k9k5oL+MTsj1saIv/Svv mdsVhsDBqUSHSfYzUBeyPlpfl06pheFl+c7zbfHuC/C9Ftn+OgFtLeBZRjalBF7mLbQm jSEUIWlX1e8cpQy9x71NT0T6ly4Lxn4eeMqmA0q/Ch7bhjnxTcp4aaZtspZqHC5Bja4b AfxJTDHZrNQXwbOdNEDRz4HDXWdzcA5ms3OwIqUJ7+SjJLgArkPeD840QJgnU2BAsaHX tgzQ== 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=lKLSp08XhHbUUELI/SqnB9YY4bVBFxcHj6dYAVBQ3to=; b=0pvGvsNK3ijjdnRlMATjQQp8S1HX0Lra6a9edNyCRGAMIsfWpzsIi8+aGtdPazN2km 5CZvgat4G0Cfe/A0t2bAkde3B9OCzsGYV/TGTDGUWx59aINM+C6H52IxDTixL9LqW/DN bvuO4SD9faUt3u+faDDFsu4OgS86CJmJ5m0jDJzlfq3QuE++pN9XBJupqYR3aLAt6mYZ k0Y1DUw1oOKJVXMNRzfA2upH2A6+S3xERVOqMGA4pLBEW1bvxNOWpILpjtZtkMiK/uyZ nimVvVr8qHTIbPraWCu2Yb9DjDpQaMMGjil4jd9Mo/B4v7chNJXZrTFI1wjwfzY0Zeqv Zk9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yPPxhSwa; 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 w1si2078011edu.459.2020.11.20.08.21.31; Fri, 20 Nov 2020 08:21:54 -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=yPPxhSwa; 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 S1729538AbgKTQTO (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:36740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729494AbgKTQTN (ORCPT ); Fri, 20 Nov 2020 11:19:13 -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 A92D5223FD; Fri, 20 Nov 2020 16:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889153; bh=zDxcfDBYmjuuUTiiRpHLHOCTf/WPUkT0pv5HqP59xZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yPPxhSwai7i1F+5ncbhIDRNTitTO/NOTd2/opdYmdz15Wg+plVdw39EpKMZc8bYbv VXO5CkglPIGsjfNo7QgfH2qePjM431XOSLCAPKQICgvYF1vd5CDRJQpToFLKFWkZTY PFGGwvU85sLZ/JzaRhPq1w5AMdPiUJCVIAzUwD7Q= 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 25/38] ASoC: max98926: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:39 +0100 Message-Id: <20201120161653.445521-25-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/max98926.c:574:34: warning: ‘max98926_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/max98926.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c index c4dfa8ab1d49..0977e541326d 100644 --- a/sound/soc/codecs/max98926.c +++ b/sound/soc/codecs/max98926.c @@ -571,11 +571,13 @@ static const struct i2c_device_id max98926_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, max98926_i2c_id); +#ifdef CONFIG_OF static const struct of_device_id max98926_of_match[] = { { .compatible = "maxim,max98926", }, { } }; MODULE_DEVICE_TABLE(of, max98926_of_match); +#endif static struct i2c_driver max98926_i2c_driver = { .driver = { -- 2.25.1