diff mbox series

[-next] fbdev: atmel_lcdfb: Remove redundant of_match_ptr()

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

Commit Message

Jinjie Ruan Aug. 11, 2023, 7:28 a.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/video/fbdev/atmel_lcdfb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Helge Deller Aug. 15, 2023, 9:08 p.m. UTC | #1
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 mbox series

Patch

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,
 	},
 };