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
commit bd37e02 upstream.

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)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Sep 15, 2016
1 parent 5ef15cd commit 651e6e1
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
@@ -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)

0 comments on commit 651e6e1

Please sign in to comment.