Message ID | 20230808131459.4081739-2-ruanjinjie@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Remove redundant of_match_ptr() | expand |
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, };
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(-)