Skip to content

Commit 47ef4ad

Browse files
committed
Merge tag 'for-linus-20160715' of git://git.infradead.org/linux-mtd
Pull MTD fix from Brian Norris: "Late MTD fix for v4.7: One regression in the Device Tree handling for OMAP NAND handling of the ELM node. TI migrated to using the property name "ti,elm-id", but forgot to keep compatibility with the old "elm_id" property. Also, might as well send out this MAINTAINERS fixup now" * tag 'for-linus-20160715' of git://git.infradead.org/linux-mtd: mtd: nand: omap2: Add check for old elm binding MAINTAINERS: Add file patterns for mtd device tree bindings
2 parents 6315170 + 7ce9ea7 commit 47ef4ad

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7476,6 +7476,7 @@ Q: http://patchwork.ozlabs.org/project/linux-mtd/list/
74767476
T: git git://git.infradead.org/linux-mtd.git
74777477
T: git git://git.infradead.org/l2-mtd.git
74787478
S: Maintained
7479+
F: Documentation/devicetree/bindings/mtd/
74797480
F: drivers/mtd/
74807481
F: include/linux/mtd/
74817482
F: include/uapi/mtd/

drivers/mtd/nand/omap2.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,8 +1657,11 @@ static int omap_get_dt_info(struct device *dev, struct omap_nand_info *info)
16571657

16581658
/* detect availability of ELM module. Won't be present pre-OMAP4 */
16591659
info->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0);
1660-
if (!info->elm_of_node)
1661-
dev_dbg(dev, "ti,elm-id not in DT\n");
1660+
if (!info->elm_of_node) {
1661+
info->elm_of_node = of_parse_phandle(child, "elm_id", 0);
1662+
if (!info->elm_of_node)
1663+
dev_dbg(dev, "ti,elm-id not in DT\n");
1664+
}
16621665

16631666
/* select ecc-scheme for NAND */
16641667
if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) {

0 commit comments

Comments
 (0)