Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1736388 > unrolled thread

[PATCH 1/3] ARM: mediatek: Cocci spatch "of_table"

Started byThomas Meyer <thomas@m3y3r.de>
First post2017-09-21 08:30 +0200
Last post2017-09-21 08:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/3] ARM: mediatek: Cocci spatch "of_table" Thomas Meyer <thomas@m3y3r.de> - 2017-09-21 08:30 +0200

#1736388 — [PATCH 1/3] ARM: mediatek: Cocci spatch "of_table"

FromThomas Meyer <thomas@m3y3r.de>
Date2017-09-21 08:30 +0200
Subject[PATCH 1/3] ARM: mediatek: Cocci spatch "of_table"
Message-ID<us39M-5A5-9@gated-at.bofh.it>
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>
---

diff -u -p a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
--- 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_
 	{ .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;

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web