projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dfdf99
)
nds32: add NULL entry to the end of_device_id array
author
YueHaibing
<yuehaibing@huawei.com>
Tue, 7 Aug 2018 04:03:13 +0000
(12:03 +0800)
committer
Greentime Hu
<greentime@andestech.com>
Tue, 4 Sep 2018 06:45:15 +0000
(14:45 +0800)
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>
arch/nds32/kernel/atl2c.c
patch
|
blob
|
history
diff --git
a/arch/nds32/kernel/atl2c.c
b/arch/nds32/kernel/atl2c.c
index 0c6d031a1c4a9df00dc991c0f52dbdd7bddab51c..0c5386e72098e45f48b925efee3431bb275a1398 100644
(file)
--- 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)