Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1393999pxb; Fri, 20 Nov 2020 08:26:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEFgqpmzTFFNmQNRZESiEl0vZ4j8x1ZcQDsSrMPVhjK0nMhv6hdT39CCBkYG6QflQx3c2e X-Received: by 2002:a17:906:2a09:: with SMTP id j9mr32729195eje.355.1605889602199; Fri, 20 Nov 2020 08:26:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889602; cv=none; d=google.com; s=arc-20160816; b=PqKwp5e3TIiQLFFrN3upmJFnkDNn8wPhMyoJv9kJe3cg/2u+qXrtlJ92bDifpyoUfv KdOZHZ6ytnR5RlJeCxfdjSmv088C4KfsAP2be+jAAy7Y8Eh4yxPb6lYkonDhzqUu4MEK bR4OklwCnFEOTv5idh0xoKtgDPrZvrXM7kYajka8EsAy7xqeTBszRIskIFiT4m06rhIM 9Fb2vqsSyejD0f+IshCBI15MpBxC9Wu3qb+schcZXSB5N2JvnmOfZ50Wf+sq7WlWZ8FC BgSwAyKMHjUcAqX9obLNQEr9sUllXTt8WR5zUlawEqS5oOvFU3K57Pgqx48o66aA4HQ9 MtuQ== 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=navQh9MzHUGsu8QpULsHc6fp/EQiPxNYrbSn4MsItkA=; b=lf3YRcCKGZnbaXm+Hyb1ZULdx+j1E9Unmboew0zdQ3RCy5vn6/R4BrzAE3OGDnhvP0 PHdF6Fg2tm7bD0GokCQkWQ6m+JKMiAy7xMAYC9JOLx3hw8mhgGf0dYpmyfkbaQRCdQ43 gDRMvgl4uF82HsOyozSlde5C/wQ/+pxO/Z9fnzCr7+e8gVO4koSX5kDJrgvETzkVaf79 QL1gAaRn0M5jYhc+I4Rxxw20wF78jWooUQyhSGHQ+kRiLUu+m7Q9gIr0nNMXG/hkMIvQ liCRDJ+PKF/rPk1oZooKdMDKpWW9wY/VlFceDi4F0j6rEV3o8yAuLT+GxrrqmEEi6JgK sEPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z2st2oue; 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 v10si1953982ejy.467.2020.11.20.08.26.19; Fri, 20 Nov 2020 08:26:42 -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=z2st2oue; 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 S1729462AbgKTQV4 (ORCPT + 99 others); Fri, 20 Nov 2020 11:21:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:39904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728985AbgKTQVz (ORCPT ); Fri, 20 Nov 2020 11:21:55 -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 05AF2223FD; Fri, 20 Nov 2020 16:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889314; bh=yHK+dUg87FWm90sWQJnOubtfeDzb13EWCJCk1WB+OtA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z2st2oueqsHMRtL1iBhD+6Ros6cFS9+0B6XIUm/ZLCkXui1c0bscUV9pLE9YWjgJx nxdaM6MgTEkrXYBwCrMwHNMLXah0czAHIDgE1R/exoX/joMp2Smobo5CYbfz6TUTae XI7Ku7aNQA/rqq1ftuc7CFoYdz8AkLUj78CithL4= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Support Opensource Subject: [PATCH 03/16] mfd: da9062: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:20 +0100 Message-Id: <20201120162133.472938-3-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/da9062-core.c:614:34: warning: ‘da9062_dt_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/da9062-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c index fc30726e2e27..60196e5befe1 100644 --- a/drivers/mfd/da9062-core.c +++ b/drivers/mfd/da9062-core.c @@ -736,7 +736,7 @@ MODULE_DEVICE_TABLE(i2c, da9062_i2c_id); static struct i2c_driver da9062_i2c_driver = { .driver = { .name = "da9062", - .of_match_table = of_match_ptr(da9062_dt_ids), + .of_match_table = da9062_dt_ids, }, .probe = da9062_i2c_probe, .remove = da9062_i2c_remove, -- 2.25.1