diff mbox series

[-next,v2,2/2] fpga: fpga-region: Remove redundant of_match_ptr()

Message ID 20230808132049.4081910-3-ruanjinjie@huawei.com (mailing list archive)
State New
Headers show
Series fpga: Remove redundant of_match_ptr() | expand

Commit Message

Jinjie Ruan Aug. 8, 2023, 1:20 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/of-fpga-region.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c
index a6affd83f275..70fe0008ad4c 100644
--- a/drivers/fpga/of-fpga-region.c
+++ b/drivers/fpga/of-fpga-region.c
@@ -441,7 +441,7 @@  static struct platform_driver of_fpga_region_driver = {
 	.remove = of_fpga_region_remove,
 	.driver = {
 		.name	= "of-fpga-region",
-		.of_match_table = of_match_ptr(fpga_region_of_match),
+		.of_match_table = fpga_region_of_match,
 	},
 };