Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392489pxb; Fri, 20 Nov 2020 08:24:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8FBOyWD9Ym9JZjP8qASKGt8QjTOxTkELWXOWGitZUy/jnjBNrUXROihMMglnz9Mwb0qOU X-Received: by 2002:a17:906:3bc9:: with SMTP id v9mr16476509ejf.69.1605889467948; Fri, 20 Nov 2020 08:24:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889467; cv=none; d=google.com; s=arc-20160816; b=1LmDr8aCPdf+PCzFEj39vVkQ1xHnIDXig1EEYfh9M5rtPvm9Ae92jJxz0zrXxPZHqt i7jhjaHQvMQIWdqRDn1RY7H/iS7q/0Kbentq2yk15JDYlHR3DPKyzdI6Wp6HYLSK2X3L sxBMqlv/EC/ydedktP9B6WM5eoNwe4W6gGN4WHFsBfLRTwKhSnubfd49hMHwk9JHyJgY e4kwlNibCutmJpin8Y2zdXjpa1Svu5moBQLEBUN6uNwQcSMde2PeJYK2egUXJyBICdK/ E7SZIodvG0G8BVx+YG2pakvXH1ymMZWf1/gSCD/ZNSpzKtDo3BBwHKZy6b5EqGYKdI8G IzVw== 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=t9WGKExqo4iiGRpoadzCMPUsWsVLX4QfJnWYETyibRw=; b=iDsl47WzU6VgTfPnCesj+eJVjMGN71PWqp0CGPCwDqA3s8RtAXYiIJ+/NUZYD8ff4R NexeBCYJJ+C7RGv4CAupRT6R4i0KK7WM041bC/s6K8ZOqx273Lcs6GFbeF1qGmbUluAf KWDggpbx7rwJAJ69EF1CK9E6YTQ+JSSAT6jThw4WKtyb6dZE7j1i04w+JyPQnwGcCVXj LyplJPDTSScz8ot7EGgRp60lT/YCu5LeynAhZVWIImvdV7LtdsxS1aTlMolhlpsUNHPm /PlOF2Hzuk6r9sl8IwjWJszYt4j1tUo24pt88GEkw/uNL3qiAnMW6aklie0S2B5cf4mb 9xEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zE/TebAF"; 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 y19si2069082edu.280.2020.11.20.08.24.04; Fri, 20 Nov 2020 08:24:27 -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="zE/TebAF"; 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 S1729894AbgKTQW0 (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:40238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729538AbgKTQWT (ORCPT ); Fri, 20 Nov 2020 11:22:19 -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 A07D422470; Fri, 20 Nov 2020 16:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889335; bh=NvHejK6bm1iezB4Z2XWVQ+HMeAvWCR8XMyZn2Cmc0nU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zE/TebAFHMNO/ZbNjF8fGrp4w/dLMQcELRPg7gSNajIns1RmDL8BXXY2ryversuo+ 6KXvt47HTX6Je4Tojj+po46iFryER9IHzkUlCb8HD8DtByTMtkcuPTvQDtqrXxRWL8 D9XcG6wKrn9SnZvjNzA44qtdVURPraILmAqSVR7c= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , patches@opensource.cirrus.com Subject: [PATCH 14/16] mfd: wm8994: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:31 +0100 Message-Id: <20201120162133.472938-14-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/wm8994-core.c:618:34: warning: ‘wm8994_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/wm8994-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 3b2b93c5bbcb..d2401e99cdd6 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -683,7 +683,7 @@ static struct i2c_driver wm8994_i2c_driver = { .driver = { .name = "wm8994", .pm = &wm8994_pm_ops, - .of_match_table = of_match_ptr(wm8994_of_match), + .of_match_table = wm8994_of_match, }, .probe = wm8994_i2c_probe, .remove = wm8994_i2c_remove, -- 2.25.1