Message ID | 1471794104-31436-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Rafael Wysocki |
Headers | show |
On 21-08-16, 15:41, Wei Yongjun wrote: > From: Wei Yongjun <weiyongjun1@huawei.com> > > Make sure of_device_id tables are NULL terminated. > > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Fixes: f56aad1d98f1 ("cpufreq: dt: Add generic platform-device creation support") CC: <stable@vger.kernel.org> #4.7+ > --- > drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c > index 470db30..285ed3e 100644 > --- a/drivers/cpufreq/cpufreq-dt-platdev.c > +++ b/drivers/cpufreq/cpufreq-dt-platdev.c > @@ -75,6 +75,8 @@ static const struct of_device_id machines[] __initconst = { > { .compatible = "ti,omap5", }, > > { .compatible = "xlnx,zynq-7000", }, > + > + { } > }; > > static int __init cpufreq_dt_platdev_init(void) Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 470db30..285ed3e 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -75,6 +75,8 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "ti,omap5", }, { .compatible = "xlnx,zynq-7000", }, + + { } }; static int __init cpufreq_dt_platdev_init(void)