diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-09-21 08:24:27 +0200 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2017-10-13 16:56:55 +0200 |
commit | 8b1cfd7474daa32e966f75365773dd3992308ddf (patch) | |
tree | ca5708e3c690514c0ff917305d172c39e91a573d /arch | |
parent | soc: mediatek: pwrap: fixup warnings from coding style (diff) | |
download | linux-8b1cfd7474daa32e966f75365773dd3992308ddf.tar.xz linux-8b1cfd7474daa32e966f75365773dd3992308ddf.zip |
ARM: mediatek: Cocci spatch "of_table"
Make sure (of/i2c/platform)_device_id tables are NULL terminated.
Found by coccinelle spatch "misc/of_table.cocci"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mediatek/platsmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c index 27d78c945caf..6882ff07aaa6 100644 --- a/arch/arm/mach-mediatek/platsmp.c +++ b/arch/arm/mach-mediatek/platsmp.c @@ -54,12 +54,14 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = { { .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot }, { .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot }, { .compatible = "mediatek,mt2701", .data = &mtk_mt8135_tz_boot }, + {}, }; static const struct of_device_id mtk_smp_boot_infos[] __initconst = { { .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot }, { .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot }, { .compatible = "mediatek,mt7623a", .data = &mtk_mt7623_boot }, + {}, }; static void __iomem *mtk_smp_base; |