2019-03-27 03:08:20

by Yue Haibing

[permalink] [raw]
Subject: [PATCH -next] drm/omap: Add NULL entry to the end of_device_id array

Make sure of_device_id tables are NULL terminated
Found by coccinelle spatch "misc/of_table.cocci"

Signed-off-by: YueHaibing <[email protected]>
---
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)





2019-03-27 12:50:36

by Mukesh Ojha

[permalink] [raw]
Subject: Re: [PATCH -next] drm/omap: Add NULL entry to the end of_device_id array

Sorry for the spam whosoever has got the last mail, as the last did not
get to
the mailing list, and it bounced, so sending it again.

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 <[email protected]>

Reviewed-by: Mukesh Ojha <[email protected]>

-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)
>
>
>