[PATCH] net: dsa: microchip: remove of_match_ptr() from ksz9477_dt_ids
From: Souptick Joarder
Date: Tue Jul 26 2022 - 22:53:12 EST
From: "Souptick Joarder (HPE)" <jrdr.linux@xxxxxxxxx>
>> drivers/net/dsa/microchip/ksz9477_i2c.c:89:34:
warning: 'ksz9477_dt_ids' defined but not used [-Wunused-const-variable=]
89 | static const struct of_device_id ksz9477_dt_ids[] = {
| ^~~~~~~~~~~~~~
Removed of_match_ptr() from ksz9477_dt_ids.
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@xxxxxxxxx>
---
drivers/net/dsa/microchip/ksz9477_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c
index 99966514d444..c967a03a22c6 100644
--- a/drivers/net/dsa/microchip/ksz9477_i2c.c
+++ b/drivers/net/dsa/microchip/ksz9477_i2c.c
@@ -118,7 +118,7 @@ MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);
static struct i2c_driver ksz9477_i2c_driver = {
.driver = {
.name = "ksz9477-switch",
- .of_match_table = of_match_ptr(ksz9477_dt_ids),
+ .of_match_table = ksz9477_dt_ids,
},
.probe = ksz9477_i2c_probe,
.remove = ksz9477_i2c_remove,
--
2.25.1