From: Wei Yongjun Date: Sun, 21 Aug 2016 15:41:44 +0000 (+0000) Subject: cpufreq: dt: Add terminate entry for of_device_id tables X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd37e022e334757a5dc1dae41baa29e16befe4ec;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cpufreq: dt: Add terminate entry for of_device_id tables Make sure of_device_id tables are NULL terminated. Signed-off-by: Wei Yongjun Acked-by: Viresh Kumar Fixes: f56aad1d98f1 (cpufreq: dt: Add generic platform-device creation support) CC: 4.7+ # 4.7+ Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 0bb44d5b5df4..2ee40fd360ca 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -74,6 +74,8 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "ti,omap5", }, { .compatible = "xlnx,zynq-7000", }, + + { } }; static int __init cpufreq_dt_platdev_init(void)