Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392139pxb; Fri, 20 Nov 2020 08:23:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzLJF5a+iaoza23gcjt538USxQl+DWGABuumcEgHvFQOBLBhz9eJ2Xiw1SemNkXjIm08DP X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr31929121ejd.363.1605889436195; Fri, 20 Nov 2020 08:23:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889436; cv=none; d=google.com; s=arc-20160816; b=jqZQlnMz9uumCMLpsN4TOl3AnE1eJ262bUhJRxq/DMqG1McaaNe7WKrw3LdBZL2Qf1 jBBxOlw0YWUQEFtCfhaupb7U1oDp0PnN+SepcKeCWYMeal0f1nR1i93cb7l6V0+INOKZ yqz4K6K1Qqh9beEP7qdIfu6KxK8+LXufTtI94ChATtWMJISdokyDF0OUqw44L5n73PGx LTQ70KAcZBXSBHfzkDqvKOK7gx2tzMQEHQHRQ8U4LI2iYb9WvLZPzIgLjcnxxr+/FUjc B/t5dehr8LoQ5wcYifOV/cNkaywoHG2g3udTUuSqZSzWhlZJqxB/hQeC0jYuIZFNd4sy tfrQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lA2Cy6TdHtrMRaf70rTHCdcEPZ8hJgcfNfoyKNEr8+M=; b=kCutsts5d3CISakeUySlY0ZFK39+VavuMi6kQrCGLcxLlBuT1yxbe/2ANrctPia8l5 B3FsHHyII7ZkR9/qT7s8PqhksZByYAqn/Rso9vBZyupEVO5Kpd2Bg74R3lShb8oY8txl kCqCn8cEIaHkdrHHeowNqAALPnExinxspyLFLksZpR7IexWh6/NB1o0Q4DcNFdDGZQuD zeFW4x9lvPjef1oMh+3hJ6iCRR4A8rvafCOgb1jJ7jgpd0AOCt+uz27GUw/bkf+yRG/l cYJdlxPbqgO2Dywm4zc/OshZv19sq/N3vHauRnmVGFJYc/3zF1VNRRHI9m+EYcI70v8e NROg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kP15HsS1; 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 d7si1954710ejk.78.2020.11.20.08.23.32; Fri, 20 Nov 2020 08:23:56 -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=kP15HsS1; 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 S1729243AbgKTQVq (ORCPT + 99 others); Fri, 20 Nov 2020 11:21:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:39778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727897AbgKTQVp (ORCPT ); Fri, 20 Nov 2020 11:21:45 -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 61FBB22269; Fri, 20 Nov 2020 16:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889305; bh=Ri0geEDPBNaIDp5ynWbEvv/T+M69W04BgBU8VY7J8S0=; h=From:To:Cc:Subject:Date:From; b=kP15HsS14kmEQE8GBYs7ieD3+qZdCeMlPPvYvQHXKPVbyz+aOk9523sY9eYtk+adc kOM+fgWuEEks64f/BRRakuXZN27JrZxNGlTmikkrgcuE9xHfHOwAXsgo6h6nfFHuCb 1eXtUxQqtURHimr6F8m0cRyPYJ4ItrWJ+eKIA6k0= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski Subject: [PATCH 01/16] mfd: bcm590xx: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:18 +0100 Message-Id: <20201120162133.472938-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 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/bcm590xx.c:95:34: warning: ‘bcm590xx_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/bcm590xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index bfac5dc091ca..6ca337cde84c 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers/mfd/bcm590xx.c @@ -107,7 +107,7 @@ MODULE_DEVICE_TABLE(i2c, bcm590xx_i2c_id); static struct i2c_driver bcm590xx_i2c_driver = { .driver = { .name = "bcm590xx", - .of_match_table = of_match_ptr(bcm590xx_of_match), + .of_match_table = bcm590xx_of_match, }, .probe = bcm590xx_i2c_probe, .id_table = bcm590xx_i2c_id, -- 2.25.1