From: YueHaibing Date: Tue, 7 Aug 2018 04:03:13 +0000 (+0800) Subject: nds32: add NULL entry to the end of_device_id array X-Git-Tag: v4.18.13~102 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=76d9688fbebbaf616d003eda44da8f4f52b5535d;p=users%2Fdwmw2%2Flinux.git nds32: add NULL entry to the end of_device_id array [ Upstream commit 1944a50859ec2b570b42b459ac25d607fc7c31f0 ] Make sure of_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: YueHaibing Acked-by: Greentime Hu Signed-off-by: Greentime Hu Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/nds32/kernel/atl2c.c b/arch/nds32/kernel/atl2c.c index 0c6d031a1c4a9..0c5386e72098e 100644 --- a/arch/nds32/kernel/atl2c.c +++ b/arch/nds32/kernel/atl2c.c @@ -9,7 +9,8 @@ void __iomem *atl2c_base; static const struct of_device_id atl2c_ids[] __initconst = { - {.compatible = "andestech,atl2c",} + {.compatible = "andestech,atl2c",}, + {} }; static int __init atl2c_of_init(void)