[media] media: mtk-mdp: NULL-terminate mtk_mdp_comp_dt_ids
authorVincent Stehlé <vincent.stehle@laposte.net>
Thu, 27 Oct 2016 20:23:25 +0000 (18:23 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 15:26:58 +0000 (13:26 -0200)
The mtk_mdp_comp_dt_ids[] array should be NULL-terminated; add therefore an
empty entry in the end.

Fixes: c8eb2d7e8202fd9c ("[media] media: Add Mediatek MDP Driver")

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Minghsiu Tsai <minghsiu.tsai@mediatek.com>
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-mdp/mtk_mdp_core.c

index 40a229d8a1f5934afe79f119340c2f080b969c63..53296e22a024501143dabaf9562e614eb15ccb0e 100644 (file)
@@ -50,7 +50,8 @@ static const struct of_device_id mtk_mdp_comp_dt_ids[] = {
        }, {
                .compatible = "mediatek,mt8173-mdp-wrot",
                .data = (void *)MTK_MDP_WROT
-       }
+       },
+       { },
 };
 
 static const struct of_device_id mtk_mdp_of_ids[] = {