All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] cpufreq: dt: Add terminate entry for of_device_id tables
@ 2016-08-21 15:41 Wei Yongjun
  2016-08-24 12:34 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-08-21 15:41 UTC (permalink / raw)
  To: Rafael J . Wysocki, Viresh Kumar; +Cc: Wei Yongjun, linux-pm

From: Wei Yongjun <weiyongjun1@huawei.com>

Make sure of_device_id tables are NULL terminated.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 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)




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] cpufreq: dt: Add terminate entry for of_device_id tables
  2016-08-21 15:41 [PATCH -next] cpufreq: dt: Add terminate entry for of_device_id tables Wei Yongjun
@ 2016-08-24 12:34 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2016-08-24 12:34 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: Rafael J . Wysocki, Wei Yongjun, linux-pm

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>

-- 
viresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-24 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-21 15:41 [PATCH -next] cpufreq: dt: Add terminate entry for of_device_id tables Wei Yongjun
2016-08-24 12:34 ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.