mtd: nand: sunxi: fix call order in sunxi_nand_chip_init()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 2 Dec 2015 15:00:57 +0000 (16:00 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:36 +0000 (22:05 +0200)
commit9edb47004e2afb5884d0c900cbd1ece8b2d6f403
tree7261bc3a9e51450ef19cbb9287c49240066dff5c
parent44ccb64fa56ad6d6d2d33a8625d9464f54c63eba
mtd: nand: sunxi: fix call order in sunxi_nand_chip_init()

sunxi_nand_chip_set_timings() is extracting a pointer to the nfc from the
nand->controller field, but this field is initialized after
sunxi_nand_chip_set_timings() call.
Reorder the calls to avoid any problem.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c