* [PATCH -next] ARM: mediatek: add terminate entry for of_device_id tables
@ 2016-10-23 11:42 Wei Yongjun
2016-10-24 0:24 ` weiyongjun (A)
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-10-23 11:42 UTC (permalink / raw)
To: Matthias Brugger, Russell King
Cc: Wei Yongjun, linux-arm-kernel, linux-mediatek, linux-kernel
From: Wei Yongjun <weiyongjun1@huawei.com>
Make sure of_device_id tables are NULL terminated.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
arch/arm/mach-mediatek/platsmp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
index b821e34..e6cffc7 100644
--- a/arch/arm/mach-mediatek/platsmp.c
+++ b/arch/arm/mach-mediatek/platsmp.c
@@ -54,11 +54,13 @@ 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 },
+ { },
};
static void __iomem *mtk_smp_base;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH -next] ARM: mediatek: add terminate entry for of_device_id tables
2016-10-23 11:42 [PATCH -next] ARM: mediatek: add terminate entry for of_device_id tables Wei Yongjun
@ 2016-10-24 0:24 ` weiyongjun (A)
0 siblings, 0 replies; 2+ messages in thread
From: weiyongjun (A) @ 2016-10-24 0:24 UTC (permalink / raw)
To: Wei Yongjun, Matthias Brugger, Russell King
Cc: linux-arm-kernel, linux-mediatek, linux-kernel
> -----Original Message-----
> From: Wei Yongjun [mailto:weiyj.lk@gmail.com]
> Sent: Sunday, October 23, 2016 7:43 PM
> To: Matthias Brugger <matthias.bgg@gmail.com>; Russell King
> <linux@armlinux.org.uk>
> Cc: weiyongjun (A) <weiyongjun1@huawei.com>; linux-arm-
> kernel@lists.infradead.org; linux-mediatek@lists.infradead.org; linux-
> kernel@vger.kernel.org
> Subject: [PATCH -next] ARM: mediatek: add terminate entry for
> of_device_id tables
>
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Make sure of_device_id tables are NULL terminated.
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
> arch/arm/mach-mediatek/platsmp.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Sorry, this patch is not correct since mtk_tz_smp_boot_infos is used
as ARRAY_SIZE(mtk_tz_smp_boot_infos), please ignore it.
Regards,
Yongjun Wei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-24 0:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-23 11:42 [PATCH -next] ARM: mediatek: add terminate entry for of_device_id tables Wei Yongjun
2016-10-24 0:24 ` weiyongjun (A)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).