aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMatthias Brugger <matthias.bgg@gmail.com>2017-10-21 04:18:20 -0400
committerMatthias Brugger <matthias.bgg@gmail.com>2017-10-21 04:23:28 -0400
commitf32fbbadaf4470e8bac27f6d87bd27441df7167f (patch)
treea03d5915f0103b2f1d4ba8f7dd9995989756c394 /drivers
parentfb2c1934f30577756e55e24e8870b45c78da3bc2 (diff)
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 <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/mediatek/mtk-pmic-wrap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c
index 912edf93c192..e9e054a15b7d 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[] = {
1380 }, { 1380 }, {
1381 .compatible = "mediatek,mt6397", 1381 .compatible = "mediatek,mt6397",
1382 .data = &pmic_mt6397, 1382 .data = &pmic_mt6397,
1383 }, {
1383 /* sentinel */ 1384 /* sentinel */
1384 } 1385 }
1385}; 1386};