From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Ojha Subject: Re: [PATCH -next] drm/omap: Add NULL entry to the end of_device_id array Date: Wed, 27 Mar 2019 11:46:01 +0530 Message-ID: <642a9813-8f4f-3d0b-038a-9e6a3fba1965@codeaurora.org> References: <20190327031904.63046-1-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0941383211==" Return-path: Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id BE8196E0A9 for ; Wed, 27 Mar 2019 06:16:09 +0000 (UTC) In-Reply-To: <20190327031904.63046-1-yuehaibing@huawei.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: YueHaibing , Tomi Valkeinen , David Airlie , Daniel Vetter , Laurent Pinchart , Sebastian Reichel Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This is a multi-part message in MIME format. --===============0941383211== Content-Type: multipart/alternative; boundary="------------3A04A1EC3C8A6CA5ED8A2660" Content-Language: en-US This is a multi-part message in MIME format. --------------3A04A1EC3C8A6CA5ED8A2660 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 3/27/2019 8:49 AM, YueHaibing wrote: > Make sure of_device_id tables are NULL terminated > Found by coccinelle spatch "misc/of_table.cocci" > > Signed-off-by: YueHaibing Reviewed-by: Mukesh Ojha > Thanks. Mukesh > --- > drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c b/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c > index 2b41c75ce988..e02aa8e70968 100644 > --- a/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c > +++ b/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c > @@ -198,6 +198,7 @@ static const struct of_device_id omapdss_of_fixups_whitelist[] __initconst = { > { .compatible = "toppoly,td028ttec1" }, > { .compatible = "tpo,td028ttec1" }, > { .compatible = "tpo,td043mtea1" }, > + {}, > }; > > static int __init omapdss_boot_init(void) > > > --------------3A04A1EC3C8A6CA5ED8A2660 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit


On 3/27/2019 8:49 AM, YueHaibing wrote:
Make sure of_device_id tables are NULL terminated
Found by coccinelle spatch "misc/of_table.cocci"

Signed-off-by: YueHaibing <yuehaibing@huawei.com>


Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>

Thanks.
Mukesh

---
 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c b/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
index 2b41c75ce988..e02aa8e70968 100644
--- a/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
+++ b/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
@@ -198,6 +198,7 @@ static const struct of_device_id omapdss_of_fixups_whitelist[] __initconst = {
 	{ .compatible = "toppoly,td028ttec1" },
 	{ .compatible = "tpo,td028ttec1" },
 	{ .compatible = "tpo,td043mtea1" },
+	{},
 };
 
 static int __init omapdss_boot_init(void)



--------------3A04A1EC3C8A6CA5ED8A2660-- --===============0941383211== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0941383211==--