Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392400pxb; Fri, 20 Nov 2020 08:24:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJNgp0wfAo6hjrn5/aNxhz3afeJUIg/QVvzjquspu3irVjUD8a9uasJUm0ZzrV81oq6S0O X-Received: by 2002:a50:930f:: with SMTP id m15mr37195710eda.112.1605889460657; Fri, 20 Nov 2020 08:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889460; cv=none; d=google.com; s=arc-20160816; b=KU87OquiVOqQ4tYiIr0mbYgfVCrvNzWMHw35Yk3fpr1AIm7CzoMkKqgALniPg+WKCE PZhAY4seyxlDHVFJcbpLpgIIowPbKhTZZO9yCD59LIUXzx+Odh+qDPUvtP3zNWq+0ru4 VI9t45xOU7JWTTm8nGPc00qkKzzTwzE4x6n1RfDsgGZ8DyPGOp53OGPa7Uq6ncG/gqYM fcTIGiP+bb9jZ33nRu/fvWgN1Cm8QA3Wo+4FBIoPtNL9KGscn2bukX+3Bvf9yRCifWeL 9orMUNfvv71eb5KfpTG80wLg6zSzDNMfTACIqjQ2dBwQkEi0QFcMYxOyzo4DU9xHz32Z ZgKQ== 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=QcWKCUpFKTKcvUVoM+i7xo0HOlVJmA6er7+xjfbHqK4=; b=dxITmc+nLET5p0vw6l3t+02m4P4RcJIEiQPof4pi8PelRueXciFesYIOIYbhSXQ6nY kxPRzKuFw5NpmnmnywyjCIxKRN93xDtjETgh7XKROYbHQpIKPOIud4BCscktlSwU7UJH 1Pl/q4SXTcKCfoy+/L0C3fmEbbB/Q0tmfaSMubpLH//X61SYJbOtyLA+UJiKhEISZWL+ gKFQY4QNbwWDnFcdWrAlvF02gv3hSpetds3dLGt0DHvRY5VeevZl32AyOgCQNemxCH22 tDrP6qWYfHZCXgb4MD+otg5eTrhjzmcNBwvScyzmizaRQ5n+6yxTDBg7IWe9LNKkCUIv jgEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m8rR8EP1; 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 f15si2005544edc.153.2020.11.20.08.23.57; Fri, 20 Nov 2020 08:24:20 -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=m8rR8EP1; 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 S1729879AbgKTQWP (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:40208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729858AbgKTQWO (ORCPT ); Fri, 20 Nov 2020 11:22:14 -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 71EB422269; Fri, 20 Nov 2020 16:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889333; bh=VuTIxqGQo/EEJgNF9vyLOTgI2ZYJAhjcd4bxSRSfJ0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m8rR8EP1giu0rgr9xA4F5eQHNXFj0746rqVonsfatGAuOSGDG9Fb/8uVQLPmjtj1g COApqvfm191eZ6UDyIF7OGbAOUml4XNDDB3DFt7TAzUYMCJIPhpQSJLnf+ZjN7kPPg YeT4i242sHORazDelHWbWAVDFSacfLL1ROBRFzW0= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org Subject: [PATCH 13/16] mfd: sun4i: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:30 +0100 Message-Id: <20201120162133.472938-13-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/sun4i-gpadc.c:79:34: warning: ‘sun4i_gpadc_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sun4i-gpadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/sun4i-gpadc.c b/drivers/mfd/sun4i-gpadc.c index b346fbce3c01..10d4172ae74c 100644 --- a/drivers/mfd/sun4i-gpadc.c +++ b/drivers/mfd/sun4i-gpadc.c @@ -166,7 +166,7 @@ static int sun4i_gpadc_probe(struct platform_device *pdev) static struct platform_driver sun4i_gpadc_driver = { .driver = { .name = "sun4i-gpadc", - .of_match_table = of_match_ptr(sun4i_gpadc_of_match), + .of_match_table = sun4i_gpadc_of_match, }, .probe = sun4i_gpadc_probe, }; -- 2.25.1