OSDN Git Service

drm/pl111: Make sure of_device_id tables are NULL terminated
authorzhong jiang <zhongjiang@huawei.com>
Sat, 4 Aug 2018 10:49:27 +0000 (18:49 +0800)
committerSean Paul <seanpaul@chromium.org>
Mon, 10 Sep 2018 20:01:22 +0000 (16:01 -0400)
We prefer to of_device_id tables are NULL terminated. So make
vexpress_muxfpga_match is NULL terminated.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1533379767-15629-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/pl111/pl111_vexpress.c

index a534b22..5fa0441 100644 (file)
@@ -111,7 +111,8 @@ static int vexpress_muxfpga_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id vexpress_muxfpga_match[] = {
-       { .compatible = "arm,vexpress-muxfpga", }
+       { .compatible = "arm,vexpress-muxfpga", },
+       {}
 };
 
 static struct platform_driver vexpress_muxfpga_driver = {