diff mbox series

[-next,1/2] fpga: ice40-spi: Remove redundant of_match_ptr()

Message ID 20230808131459.4081739-2-ruanjinjie@huawei.com (mailing list archive)
State New
Headers show
Series Remove redundant of_match_ptr() | expand

Commit Message

Jinjie Ruan Aug. 8, 2023, 1:14 p.m. UTC
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/fpga/ice40-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c
index 7cbb3558b844..1fa546765cf8 100644
--- a/drivers/fpga/ice40-spi.c
+++ b/drivers/fpga/ice40-spi.c
@@ -199,7 +199,7 @@  static struct spi_driver ice40_fpga_driver = {
 	.probe = ice40_fpga_probe,
 	.driver = {
 		.name = "ice40spi",
-		.of_match_table = of_match_ptr(ice40_fpga_of_match),
+		.of_match_table = ice40_fpga_of_match,
 	},
 	.id_table = ice40_fpga_spi_ids,
 };