Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1393519pxb; Fri, 20 Nov 2020 08:26:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxLONd11jZCTjm6TGHqLZzQWMNyNUi5zeDReh+xkU5dy/j8pbduCSRWPGvw+OV4yGV9e1o X-Received: by 2002:a17:906:6896:: with SMTP id n22mr35155894ejr.56.1605889560097; Fri, 20 Nov 2020 08:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889560; cv=none; d=google.com; s=arc-20160816; b=TFMXHTO9LX0tAdBmsylww/9+1sBkM67miYY0xuVvSXAt62j/hiBeCD3RCMOYPjQQ/1 dcN/eSso5UaOhUvn9duajUM9YF3YYSQGkwJbK/n4iKygipOsxkjcyMTbD81p7gY+2DuZ I5LQNzuUn5anOru4dwBhNSKA2avXphHPWhXYsHzAAl5KsZAS0fIcDyTZgNQMqmULeoYy ggNcV1IbOMvGJE/O2gSLUY++fO/mEFN3iiA/Ji/uOH18cjKNHywDAszKPYFWDPuRCvBM Ay8fwLCbQUKr1FbMhud1oi6LTSidPUy5XWTDvYKycbZrerCZrCjymRoOjDTfPpmHuMrK fLHg== 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=UrdsRkBAw3KFo96EuqoSK3tQx07O5p6wF0OX2YFwYKk=; b=i3Wn54DaPQTvAk/k+v7oX0QhJYxd/MRGLRyDMV53k1hTbK2IPxR/k65LFJqhL59cbV TanY4CM+hPBnhrI5UaXBQTf5Y/hjx688lwqOV854DUPYFfLOMbP7k5KthxGs9o3XfVXv gplvE8m9Ik0DiNZ2WPCNJhMT+J8xbQNDYdypKubhq8ni4Fk7y64iEfDyW6XRpfnH4/mT bEyBQkSzhguEVDICnliPiFyMbEGM6Kd9EDBw0rW7sEoP4tpBm73ZzUGcL0I1cxSXVbe0 OGQToVAyd7FmR02Wm2eSf27ulJ0Ko0L+ruenwwQdWWGrisjrcTFhmT+BfG/IjBuGJSnv GMmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=keXezjqo; 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 s10si1871760ejv.112.2020.11.20.08.25.36; Fri, 20 Nov 2020 08:26:00 -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=keXezjqo; 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 S1729856AbgKTQWU (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:40258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729858AbgKTQWR (ORCPT ); Fri, 20 Nov 2020 11:22:17 -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 539CD223BE; Fri, 20 Nov 2020 16:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889337; bh=SRwrYk85QtRvs535MX/n3ZEfTivmPucGYB46L0yPbD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=keXezjqo0BRLJmWpA8wvZH5EnTvz0q6wloYSNL5n+jtkmiV0SOG1tYjHNJN9QjFGg N+6SmAz0LvR0MTbcakWkcyTzJM+Wkh4nYKRze3jtq4FAkZ61aXeNQ1EceTwgkubg3A 3/724gtnh8IUt3INnbUQ3RwfrkrNRkETdDSXncgY= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Chen-Yu Tsai Subject: [PATCH 15/16] mfd: axp20x: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:21:32 +0100 Message-Id: <20201120162133.472938-15-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162133.472938-1-krzk@kernel.org> References: <20201120162133.472938-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 either via ACPI or OF. Its of_device_id table is referenced via of_match_ptr() so it will be unused for !CONFIG_OF builds: drivers/mfd/axp20x-i2c.c:60:34: warning: ‘axp20x_i2c_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/axp20x-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c index 068e9c083f13..2cfde81f5fbf 100644 --- a/drivers/mfd/axp20x-i2c.c +++ b/drivers/mfd/axp20x-i2c.c @@ -57,6 +57,7 @@ static int axp20x_i2c_remove(struct i2c_client *i2c) return axp20x_device_remove(axp20x); } +#ifdef CONFIG_OF static const struct of_device_id axp20x_i2c_of_match[] = { { .compatible = "x-powers,axp152", .data = (void *)AXP152_ID }, { .compatible = "x-powers,axp202", .data = (void *)AXP202_ID }, @@ -68,6 +69,7 @@ static const struct of_device_id axp20x_i2c_of_match[] = { { }, }; MODULE_DEVICE_TABLE(of, axp20x_i2c_of_match); +#endif static const struct i2c_device_id axp20x_i2c_id[] = { { "axp152", 0 }, -- 2.25.1