mtd: nand: simplify nand_dt_init() usage
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Thu, 10 Dec 2015 08:00:37 +0000 (09:00 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 18 Dec 2015 21:22:50 +0000 (13:22 -0800)
commit7194a29a9bf1e5abcda8b181bba771fbe0e95b6c
tree90c70be3a9445ffcc5737554c6e75587e71ee972
parentf12d86afc5594c89492fb7c78fce07a4e94b2384
mtd: nand: simplify nand_dt_init() usage

nand_dt_init() function requires 3 arguments where it actually needs one
(dn and mtd can both be retrieved from chip). Drop these parameters.

Testing for dn != NULL inside nand_dt_init() also helps simplifying the
caller code.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c