From: Chunyang Zhong Date: Fri, 10 Dec 2021 10:28:16 +0000 (+0800) Subject: video: fbdev: ocfb: add const to of_device_id X-Git-Tag: v6.1-rc5~1764^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4378aaeef31bfac5eae5a1364f3e27c6314566dd;p=platform%2Fkernel%2Flinux-starfive.git video: fbdev: ocfb: add const to of_device_id struct of_device_id should normally be const. Signed-off-by: Chunyang Zhong Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/ocfb.c b/drivers/video/fbdev/ocfb.c index bfa4ed4..da7e145 100644 --- a/drivers/video/fbdev/ocfb.c +++ b/drivers/video/fbdev/ocfb.c @@ -387,7 +387,7 @@ static int ocfb_remove(struct platform_device *pdev) return 0; } -static struct of_device_id ocfb_match[] = { +static const struct of_device_id ocfb_match[] = { { .compatible = "opencores,ocfb", }, {}, };