The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie <ruanjinjie@xxxxxxxxxx> --- drivers/fpga/of-fpga-region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }, }; -- 2.34.1