linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/16] mfd: bcm590xx: drop of_match_ptr from of_device_id table
@ 2020-11-20 16:21 Krzysztof Kozlowski
  2020-11-20 16:21 ` [PATCH 02/16] mfd: da9055: " Krzysztof Kozlowski
                   ` (15 more replies)
  0 siblings, 16 replies; 24+ messages in thread
From: Krzysztof Kozlowski @ 2020-11-20 16:21 UTC (permalink / raw)
  To: linux-kernel, Lee Jones; +Cc: Krzysztof Kozlowski

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 <krzk@kernel.org>
---
 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


^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-11-27 13:20 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 16:21 [PATCH 01/16] mfd: bcm590xx: drop of_match_ptr from of_device_id table Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 02/16] mfd: da9055: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 03/16] mfd: da9062: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 04/16] mfd: da9063: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 05/16] mfd: da9150: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 06/16] mfd: ene-kb3930: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 07/16] mfd: fsl-imx25: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 08/16] mfd: max77650: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 09/16] mfd: max77686: " Krzysztof Kozlowski
2020-11-23  5:12   ` Chanwoo Choi
2020-11-20 16:21 ` [PATCH 10/16] mfd: mt6397: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 11/16] mfd: rt5033: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 12/16] mfd: stmfx: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 13/16] mfd: sun4i: " Krzysztof Kozlowski
2020-11-20 16:21 ` [PATCH 14/16] mfd: wm8994: " Krzysztof Kozlowski
2020-11-20 17:02   ` Charles Keepax
2020-11-20 16:21 ` [PATCH 15/16] mfd: axp20x: skip of_device_id table when !CONFIG_OF Krzysztof Kozlowski
2020-11-20 16:41   ` Chen-Yu Tsai
2020-11-20 16:21 ` [PATCH 16/16] mfd: twl6030: mark of_device_id table as maybe unused Krzysztof Kozlowski
2020-11-27  8:06 ` [PATCH 01/16] mfd: bcm590xx: drop of_match_ptr from of_device_id table Lee Jones
2020-11-27  8:17   ` Krzysztof Kozlowski
2020-11-27  9:17     ` Lee Jones
2020-11-27 11:37       ` Miguel Ojeda
2020-11-27 13:20         ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).