Message ID | 20230811072811.2350474-1-ruanjinjie@huawei.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | [-next] fbdev: atmel_lcdfb: Remove redundant of_match_ptr() | expand |
On 8/11/23 09:28, Ruan Jinjie wrote: > The driver depends on CONFIG_OF, it is not necessary to use > of_match_ptr() here. > > Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> applied. Thanks! Helge > --- > drivers/video/fbdev/atmel_lcdfb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c > index c75a62287ec4..a908db233409 100644 > --- a/drivers/video/fbdev/atmel_lcdfb.c > +++ b/drivers/video/fbdev/atmel_lcdfb.c > @@ -1306,7 +1306,7 @@ static struct platform_driver atmel_lcdfb_driver = { > .resume = atmel_lcdfb_resume, > .driver = { > .name = "atmel_lcdfb", > - .of_match_table = of_match_ptr(atmel_lcdfb_dt_ids), > + .of_match_table = atmel_lcdfb_dt_ids, > }, > }; >
diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index c75a62287ec4..a908db233409 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c @@ -1306,7 +1306,7 @@ static struct platform_driver atmel_lcdfb_driver = { .resume = atmel_lcdfb_resume, .driver = { .name = "atmel_lcdfb", - .of_match_table = of_match_ptr(atmel_lcdfb_dt_ids), + .of_match_table = atmel_lcdfb_dt_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/video/fbdev/atmel_lcdfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)