cpufreq: qcom-kryo: add NULL entry to the end of_device_id array
authorYueHaibing <yuehaibing@huawei.com>
Mon, 23 Jul 2018 12:34:29 +0000 (20:34 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 24 Jul 2018 08:44:57 +0000 (10:44 +0200)
Make sure of_device_id tables are NULL terminated.

Found by coccinelle spatch "misc/of_table.cocci"

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Ilia Lin <ilia.lin@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/qcom-cpufreq-kryo.c

index 29389accf3e97df7a5700b49e980c88de0974583..efc9a7ae485707e32c2dade8c64c58fb798a8c8d 100644 (file)
@@ -183,6 +183,7 @@ static struct platform_driver qcom_cpufreq_kryo_driver = {
 static const struct of_device_id qcom_cpufreq_kryo_match_list[] __initconst = {
        { .compatible = "qcom,apq8096", },
        { .compatible = "qcom,msm8996", },
+       {}
 };
 
 /*