2016-10-23 11:43:14

by Wei Yongjun

[permalink] [raw]
Subject: [PATCH -next] ARM: mediatek: add terminate entry for of_device_id tables

From: Wei Yongjun <[email protected]>

Make sure of_device_id tables are NULL terminated.

Signed-off-by: Wei Yongjun <[email protected]>
---
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;




2016-10-24 00:26:47

by Wei Yongjun

[permalink] [raw]
Subject: RE: [PATCH -next] ARM: mediatek: add terminate entry for of_device_id tables



> -----Original Message-----
> From: Wei Yongjun [mailto:[email protected]]
> Sent: Sunday, October 23, 2016 7:43 PM
> To: Matthias Brugger <[email protected]>; Russell King
> <[email protected]>
> Cc: weiyongjun (A) <[email protected]>; linux-arm-
> [email protected]; [email protected]; linux-
> [email protected]
> Subject: [PATCH -next] ARM: mediatek: add terminate entry for
> of_device_id tables
>
> From: Wei Yongjun <[email protected]>
>
> Make sure of_device_id tables are NULL terminated.
>
> Signed-off-by: Wei Yongjun <[email protected]>
> ---
> 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