From b8be9c72aab61bcacb57782d9dcf03fecbf0b15b Mon Sep 17 00:00:00 2001 From: Han Xu Date: Thu, 22 Oct 2015 22:22:58 -0500 Subject: [PATCH] MLK-11751: mtd: gpmi: add empty sentinel entry at the end of of_device_id table add an empty sentinel entry to avoid the struct of_device_id is not terminated with a NULL entry issue. Signed-off-by: Han Xu (cherry picked from commit 2b1ce5ec442dde8801b6b2d059d22f5dce7c9c76) --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 922f868460bc..597d40ffcf6d 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c @@ -2342,8 +2342,8 @@ static const struct of_device_id gpmi_nand_id_table[] = { .data = (void *)&gpmi_devdata_imx6ul, }, { .compatible = "fsl,imx7d-gpmi-nand", - .data = &gpmi_devdata_imx7d, - } + .data = (void *)&gpmi_devdata_imx7d, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, gpmi_nand_id_table); -- 2.17.1