summaryrefslogtreecommitdiffstats
path: root/arch/nds32
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-08-07 12:03:13 +0800
committerGreentime Hu <greentime@andestech.com>2018-09-04 14:45:15 +0800
commit1944a50859ec2b570b42b459ac25d607fc7c31f0 (patch)
tree20324a6af58f95653d3eaff981a9389c232953b3 /arch/nds32
parent1dfdf99106668679b0de5a62fd4f42c1a11c9445 (diff)
downloadlinux-1944a50859ec2b570b42b459ac25d607fc7c31f0.tar.bz2
nds32: add NULL entry to the end of_device_id array
Make sure of_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32')
-rw-r--r--arch/nds32/kernel/atl2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/nds32/kernel/atl2c.c b/arch/nds32/kernel/atl2c.c
index 0c6d031a1c4a..0c5386e72098 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)