]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: denali: allow to override mtd->name from label DT property
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 30 Mar 2017 06:45:48 +0000 (15:45 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 25 Apr 2017 12:18:31 +0000 (14:18 +0200)
commita06ca5d2b0f2aa1f9a6297c80a022d540e7cfd6c
treead5ca31bf76eb0b6ea784c843148b9a0e34c4d0a
parent77efac3558a47b8dd6775065b639bd8eddaa4a7d
mtd: nand: denali: allow to override mtd->name from label DT property

Commit f1d995ce89fe ("mtd: name the mtd device with an optional
label property") allow us to identify a chip in a user-friendly way.

If nand_set_flash_node() picks up the "label" from DT, let's respect
it.  Otherwise, let it fallback to the current name "denali-nand".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Suggested-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c