From: Matthias Brugger Date: Sat, 21 Oct 2017 08:18:20 +0000 (+0200) Subject: soc: mediatek: pwrap: fix fatal compiler error X-Git-Tag: iommu-v4.15-rc3~1^2~7^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f32fbbadaf4470e8bac27f6d87bd27441df7167f;p=users%2Fdwmw2%2Flinux.git soc: mediatek: pwrap: fix fatal compiler error When adding the MT6380 compatible, the sentinel for of_device_id was deleted, which leades to the following compiler error: FATAL: drivers/soc/mediatek/mtk-pmic-wrap: struct of_device_id is not terminated with a NULL entry! Fix this by adding the sentinel again. Signed-off-by: Matthias Brugger --- diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 912edf93c192a..e9e054a15b7d2 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -1380,6 +1380,7 @@ static const struct of_device_id of_slave_match_tbl[] = { }, { .compatible = "mediatek,mt6397", .data = &pmic_mt6397, + }, { /* sentinel */ } };