commit | 7194a29a9bf1e5abcda8b181bba771fbe0e95b6c | [log] [tgz] |
---|---|---|
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | Thu Dec 10 09:00:37 2015 +0100 |
committer | Brian Norris <computersforpeace@gmail.com> | Fri Dec 18 13:22:50 2015 -0800 |
tree | 90c70be3a9445ffcc5737554c6e75587e71ee972 | |
parent | f12d86afc5594c89492fb7c78fce07a4e94b2384 [diff] |
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>