diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-08-21 11:41:44 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-08-30 20:49:05 -0400 |
commit | bd37e022e334757a5dc1dae41baa29e16befe4ec (patch) | |
tree | e3edcfaeda9324ffd967c971bdfe49110bb6858b /drivers/cpufreq | |
parent | 3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff) |
cpufreq: dt: Add terminate entry for of_device_id tables
Make sure of_device_id tables are NULL terminated.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Fixes: f56aad1d98f1 (cpufreq: dt: Add generic platform-device creation support)
CC: 4.7+ <stable@vger.kernel.org> # 4.7+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq-dt-platdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 = { | |||
74 | { .compatible = "ti,omap5", }, | 74 | { .compatible = "ti,omap5", }, |
75 | 75 | ||
76 | { .compatible = "xlnx,zynq-7000", }, | 76 | { .compatible = "xlnx,zynq-7000", }, |
77 | |||
78 | { } | ||
77 | }; | 79 | }; |
78 | 80 | ||
79 | static int __init cpufreq_dt_platdev_init(void) | 81 | static int __init cpufreq_dt_platdev_init(void) |