Commit 651e6e15 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

cpufreq: dt: Add terminate entry for of_device_id tables

commit bd37e022 upstream.

Make sure of_device_id tables are NULL terminated.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Fixes: f56aad1d (cpufreq: dt: Add generic platform-device creation support)
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ef15cd2
...@@ -74,6 +74,8 @@ static const struct of_device_id machines[] __initconst = { ...@@ -74,6 +74,8 @@ static const struct of_device_id machines[] __initconst = {
{ .compatible = "ti,omap5", }, { .compatible = "ti,omap5", },
{ .compatible = "xlnx,zynq-7000", }, { .compatible = "xlnx,zynq-7000", },
{ }
}; };
static int __init cpufreq_dt_platdev_init(void) static int __init cpufreq_dt_platdev_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment