aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-07-15 20:53:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-15 20:53:34 -0400
commit47ef4ad2684d380dd6d596140fb79395115c3950 (patch)
tree9ce6e1b18cf01816dc2dbba937c9ff37a37a17b8 /drivers
parent631517032f261f6fd35d11321cd2ba695573f2ed (diff)
parent7ce9ea7e6b35a652034486133174d4e17055cef5 (diff)
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/omap2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 08e158895635..a136da8df6fe 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -1657,8 +1657,11 @@ static int omap_get_dt_info(struct device *dev, struct omap_nand_info *info)
1657 1657
1658 /* detect availability of ELM module. Won't be present pre-OMAP4 */ 1658 /* detect availability of ELM module. Won't be present pre-OMAP4 */
1659 info->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0); 1659 info->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0);
1660 if (!info->elm_of_node) 1660 if (!info->elm_of_node) {
1661 dev_dbg(dev, "ti,elm-id not in DT\n"); 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 }
1662 1665
1663 /* select ecc-scheme for NAND */ 1666 /* select ecc-scheme for NAND */
1664 if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) { 1667 if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) {