Skip to content

Commit

Permalink
nds32: add NULL entry to the end of_device_id array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Greentime Hu committed Sep 4, 2018
1 parent 1dfdf99 commit 1944a50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/nds32/kernel/atl2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1944a50

Please sign in to comment.