mtd: nand: sunxi: rely on nand_dt_init initialization
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Wed, 2 Sep 2015 08:30:25 +0000 (10:30 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 11 Sep 2015 22:48:46 +0000 (15:48 -0700)
commita3d22a55cda99bcd151836f39ddd329af6cb1d30
tree258a94a81d11abb3fa2517f432a168ca003a10b1
parent61528d888adf9470db73aaadf1ff9ca35942262a
mtd: nand: sunxi: rely on nand_dt_init initialization

nand_dt_init(), called from nand_scan_ident(), is already parsing the
generic MTD/NAND DT properties, and initializing the nand_chip struct
accordingly.
Rely on this initialization instead of manually parsing those properties.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[Brian: rename 'np' -> 'flash_node' to accomodate for prior rename patch]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/sunxi_nand.c