Skip to content

Commit

Permalink
cpufreq: dt: Add terminate entry for of_device_id tables
Browse files Browse the repository at this point in the history
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: f56aad1 (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>
  • Loading branch information
Wei Yongjun authored and Rafael J. Wysocki committed Aug 31, 2016
1 parent 3eab887 commit bd37e02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/cpufreq/cpufreq-dt-platdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd37e02

Please sign in to comment.