From c74187e5c80073b82fb2fe383271708c4420e6de Mon Sep 17 00:00:00 2001 From: Neeraj Upadhyay Date: Wed, 8 Feb 2017 16:34:20 +0530 Subject: [PATCH] regulator: cpr4: null terminate of_match_table Null terminate cpr4_mmss_regulator_match_table with '{}', to fix the error reported from KASAN. Change-Id: Ib991fe5ce57e9e12132c3c836e1e807cb0afad22 Signed-off-by: Neeraj Upadhyay --- drivers/regulator/cpr4-mmss-ldo-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/cpr4-mmss-ldo-regulator.c b/drivers/regulator/cpr4-mmss-ldo-regulator.c index f8e3ea40ddac..c4aef84e26eb 100644 --- a/drivers/regulator/cpr4-mmss-ldo-regulator.c +++ b/drivers/regulator/cpr4-mmss-ldo-regulator.c @@ -737,6 +737,7 @@ static const struct of_device_id cpr4_mmss_regulator_match_table[] = { .compatible = "qcom,cpr4-sdm660-mmss-ldo-regulator", .data = (void *)NULL, }, + { }, }; static struct platform_driver cpr4_mmss_regulator_driver = {