Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392691pxb; Fri, 20 Nov 2020 08:24:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxANLzvKmWS6vmxwuNvuplmwGE3Ll7TNW6+08ZhWfEZfUkmJK3y02xBFd9wNgeNmRZ867Ni X-Received: by 2002:a50:875d:: with SMTP id 29mr17635884edv.172.1605889487130; Fri, 20 Nov 2020 08:24:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889487; cv=none; d=google.com; s=arc-20160816; b=rdqk9jWVkvDbb9EpmUI7E47GafX2N69q/eGH4g6px/Lu3jVEs8rFvlHtbaWmI/u9tS vEARBadhwrBLb7s9h1UNjsklVPgWw/ozDvjhjvInUI0kdVGklPwHugTVlgQyhbU1/kvA 3aQ4eZ81WlYjv2hCjhV5vL+/Yvx/E5a1yKvy25H5T1194cKc+d1lBZ8jccu+y2pJILao fP5oOUImHpMkkmK3p2zqZecDsW0S2lJG26RrL/AeHZ95aZ18EvNCdMrQDGCGxQcUjHvN TDdcHSkxJqJsDbWLO9GMqpXSCwQ8R+QiNOEz24/5Jd22U70MYAg/bJnyGpfFhcFXqafS xxsA== 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=mRm9SZWiALmGfRANFEyLbbH9q7TQADv8WtewyaI7qH8=; b=sWDFjk4Sp3ks2ZRO6kxhtqX1wFB8Hf01duKnG/ZE5cE6qnEEgdVVsSnMxiCLMkgeht m0eK9ESTyOfDcB9d7MdbzOvoqqjTilrApHPbK3v8Ye5ffNdVBmd0ZpQyzQnMzNM62Ofm +zspK0ijdn1lj8aqhezgL9I3p2+eZzqwZfqtGv+/QkZB0lFboS1YE7JeyZ5/63erTWdX EtM/8FJ77HBqI/SGX7iwDupF+rLrmmc5uWv5VboCvqQ9kfyNpCXGFmJNpd23sFkR8mLh MHMiY+FihG77Ac1qiuyr66cxyGMqltfNr2qkiPas3MAY1X4J4vjhvipxzdFRAViWHpEX zKgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cViIjeTF; 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 sa28si1887556ejb.734.2020.11.20.08.24.23; Fri, 20 Nov 2020 08:24:47 -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=cViIjeTF; 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 S1729506AbgKTQWe (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:40110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729800AbgKTQWI (ORCPT ); Fri, 20 Nov 2020 11:22:08 -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 942EF223BE; Fri, 20 Nov 2020 16:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889327; bh=6qUhf2df6YHu083uuIrpaf14GKeZQqyELwqjl3Hr81k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cViIjeTFMJYkCOMT/xAcPv2RziinrswH6Rhfugqj0huDiZaU3Fz49Xds9xB19xHIK fNbEeufSRsMSzs3L2IMCj5Fb6znhuRn0n/xNTSAOnXAKHtTiKg7CBqTLaN1mEcZBvS B0gde80tQCWJMmAbtXzOR6RTV7vYNRSZ6F4/S7Zc= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 10/16] mfd: mt6397: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:27 +0100 Message-Id: <20201120162133.472938-10-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/mt6397-core.c:214:34: warning: ‘mt6397_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/mt6397-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index f6cd8a660602..7518d74c3b4c 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -237,7 +237,7 @@ static struct platform_driver mt6397_driver = { .probe = mt6397_probe, .driver = { .name = "mt6397", - .of_match_table = of_match_ptr(mt6397_of_match), + .of_match_table = mt6397_of_match, }, .id_table = mt6397_id, }; -- 2.25.1