Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392421pxb; Fri, 20 Nov 2020 08:24:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPOQLWfOLMN0Il3AS0090+utNuj5+HRKHQxC4SYfAFn1FIa2u8yMh0IcYlT/QUSRxZHW1o X-Received: by 2002:a17:906:1646:: with SMTP id n6mr3158536ejd.89.1605889463076; Fri, 20 Nov 2020 08:24:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889463; cv=none; d=google.com; s=arc-20160816; b=qQoCKcup2yzYk+uA8vBOEMxbrpuwIGHqv4I+4n/t80czC/F21aXuUezlDElg16risE j8Jjj3O1LdMQSgK2XUDIzqbVLXz9xqtBTMAxKfjnRb2kSc7u9Vr3cYlXQ2mxUOxn4S+w 9pwEzRCBXgzShkHttduFCYuSjZ1/jv0viCwiUB53j2EJEbPIoYnmhjiAUKU1PLzfpSI9 /yhoe+MbdFhNMRWYQ1VUR4NEYJ3azaYDSvA+9q3dFLmo3FsrHMom1UdvIl+CEe3Jz/Ar r5UKjj65BJJDtmaXdXilQGE2cX/nHvypCg1m7vVGZM1Yv1C7wid155aT48IRxy7rzExK Tx+A== 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=IvStPOETbi8tP1hVJXycAmcVDkqnKTx57dw0wXfNQ+k=; b=mEdfj3p3UeMGr5D0n650mSPnB7d3bFGW4n4CRJoV5Ma2qwGppNx4epCU7hiNm4Rc5i qpNgzmYf4Uw9NX/peaMG4Yf1Aj474siC9JKOwV4OTu1v1Y+yChUiU/pbXvmehPDAKwxM 2JVaErsNxgbF4t/l82iXKEVW41xgB6vfq6DvaubPgetD+jAHEFdlkulrsiiuCki0f623 FLJPV3LSpeMuysNx9vXcVmZJo/f1VZbS3xfYXdtAEySPwV3vlAj7UKya7GLRrliuL+ri Osy0XIJmRb4WEpmdV+wUB+9GA27+T13W4PJP+PlRPfEeUbr9Avq9ngkMY4TY9n3vppBt 3dLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=txLefZFl; 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 gz19si2000413ejb.18.2020.11.20.08.24.00; Fri, 20 Nov 2020 08:24:23 -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=txLefZFl; 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 S1729857AbgKTQWN (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:40170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729840AbgKTQWM (ORCPT ); Fri, 20 Nov 2020 11:22:12 -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 3B5FC223BE; Fri, 20 Nov 2020 16:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889331; bh=ff2/0GFZmOkfOpWgo2XaheET+oxDW24eQaCng8TEeRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=txLefZFl+Pa19Ah6jARwsNIaAl85zEF8BVTjtIs8gGtaVceu098dLwQAJOKzm6EyP DfzYFWOyq1csi11jp2QG10FCsyS7Eq/xfAIK0Jww7vkS+bGf2VlQTx7At6DPFkhijo 3hjIXMTXdbwjCFa1X3G7ApbZ87Glx5O8Ls3UaM00= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 12/16] mfd: stmfx: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:29 +0100 Message-Id: <20201120162133.472938-12-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/stmfx.c:542:34: warning: ‘stmfx_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/stmfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stmfx.c b/drivers/mfd/stmfx.c index 5e680bfdf5c9..38303b534172 100644 --- a/drivers/mfd/stmfx.c +++ b/drivers/mfd/stmfx.c @@ -548,7 +548,7 @@ MODULE_DEVICE_TABLE(of, stmfx_of_match); static struct i2c_driver stmfx_driver = { .driver = { .name = "stmfx-core", - .of_match_table = of_match_ptr(stmfx_of_match), + .of_match_table = stmfx_of_match, .pm = &stmfx_dev_pm_ops, }, .probe = stmfx_probe, -- 2.25.1