mtd: nand: mtk: change the compile sequence of mtk_nand.o and mtk_ecc.o
authorXiaolei Li <xiaolei.li@mediatek.com>
Sat, 28 Oct 2017 06:52:23 +0000 (14:52 +0800)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sun, 29 Oct 2017 19:40:40 +0000 (20:40 +0100)
commit1c782b9a851770b152ddd711d0a0cb295872ab50
treee3d406f3eab3edc51bc5ec390d52170137c2de99
parent739c64414f01748a36e7d82c8e0611dea94412bd
mtd: nand: mtk: change the compile sequence of mtk_nand.o and mtk_ecc.o

There will get mtk ecc handler during mtk nand probe now.
If mtk ecc module is not initialized, then mtk nand probe will return
-EPROBE_DEFER, and retry later.

Change the compile sequence of mtk_nand.o and mtk_ecc.o, initialize mtk
ecc module before mtk nand module. This makes mtk nand module initialized
as soon as possible.

Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/Makefile