projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79012fd
)
MLK-11751: mtd: gpmi: add empty sentinel entry at the end of of_device_id table
author
Han Xu
<b45815@freescale.com>
Fri, 23 Oct 2015 03:22:58 +0000
(22:22 -0500)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:21 +0000
(14:49 -0500)
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 <b45815@freescale.com>
(cherry picked from commit
2b1ce5ec442dde8801b6b2d059d22f5dce7c9c76
)
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index
922f868
..
597d40f
100644
(file)
--- 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);