Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392327pxb; Fri, 20 Nov 2020 08:24:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0pfKwF3G8v9wEduzKn9MRr2nCsWzBYI6Ok4Cs0Bt3yM35jYQDDYq4FI2U2uODxthOIRzE X-Received: by 2002:a50:ff05:: with SMTP id a5mr37562737edu.43.1605889452460; Fri, 20 Nov 2020 08:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889452; cv=none; d=google.com; s=arc-20160816; b=RN/2MtgJr6cKNiqs61blmGW2q2hwAeq4Kl+yl+6QjYkCkh0HR6BcN+AO2QyUWSW/1s momQOpnRelqcJAeFq5AZkyt7Lxxa9VKFDKhTkG6Qn5ji0OIX9anbFVv0JNn+cPmWCwZ4 PKcfS5l1hSsINs+BtM87U1Zv/zR5S8aqGdToCVW9PpshYKhbHvpKKjblW01w8cfqfhRH A7wyGBWu+pXPfR7eDdQ0pRAewhuf1IjdmlG23mt36f8BkLg+aGr/wtS1YUMSI92ZU+9w GvMBh24tYH7lTIEmbMfmlJQaPhy4Q103Q84QaAV6cjpXUsYMUNfN0K9iGjJrVVd4NBBi agnQ== 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=FSTZrD42PpsTqA5qFzhcleHBqqEeYfCVapkUH6/3V+g=; b=W6TYOosEPRwYbzDd0QgxLUxdNLbq6Pqae2WDShzU/kZNBvAiHxcFZ8GgSwK6B8Piiu yQqTRPD2HSEt1pMvf7dpjyNJE6pJpbyw3ATMt3Pryfrvf1e4Ht8IP0oPwE9xvRJlM4np Fz+nyb7SfI6bMWV33m9vHBWgKszg0UewwTdcwjYTWHYp4uy1ps/Yz6bihz1qOydJzwRd CYbrgzRJBSAgsKmOV2wr2YOQtAkH06c8a1XUdw9W3VfalW65ZDj6t42gBRi+mFI85hgP kwHbG1P4ZzVr4MzzO7It73k/I7Q5KaA4emXyV9mw0zZ+nEAB7F6hkkTLfyrW8v1XAWlc 4BlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FpnPh8Gc; 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 o7si1884680ejb.91.2020.11.20.08.23.48; Fri, 20 Nov 2020 08:24:12 -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=FpnPh8Gc; 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 S1729785AbgKTQWE (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:39994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729020AbgKTQWC (ORCPT ); Fri, 20 Nov 2020 11:22:02 -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 846C9223BE; Fri, 20 Nov 2020 16:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889322; bh=BHllnI+0v2HI0B7TLmesbiXjOywu6r/Z9IUQpQJMATU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FpnPh8GcZZUlkdKeBDgvFO30GwAUkj1ECxkpT7xkjt1Wrx3RJ6Muj2127fwDqdgAI wgdYga1hIiJkvFDrD76cHmGzbnAq1gmzaU3FwxQxIqyfDGP8leXlsV7gIR3mxusByN ajewyrt+eQe28Y3MwTBN/9Ho50VtywfShZOpVsIE= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH 07/16] mfd: fsl-imx25: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:24 +0100 Message-Id: <20201120162133.472938-7-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 only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). This fixes compile warning (!CONFIG_OF on x86_64): drivers/mfd/fsl-imx25-tsadc.c:190:34: warning: ‘mx25_tsadc_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/fsl-imx25-tsadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c index a016b39fe9b0..5f6f0a83e1c5 100644 --- a/drivers/mfd/fsl-imx25-tsadc.c +++ b/drivers/mfd/fsl-imx25-tsadc.c @@ -196,7 +196,7 @@ MODULE_DEVICE_TABLE(of, mx25_tsadc_ids); static struct platform_driver mx25_tsadc_driver = { .driver = { .name = "mx25-tsadc", - .of_match_table = of_match_ptr(mx25_tsadc_ids), + .of_match_table = mx25_tsadc_ids, }, .probe = mx25_tsadc_probe, .remove = mx25_tsadc_remove, -- 2.25.1