mtd: rawnand: fsmc: Make conversion from chip to fsmc consistent
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 20 Nov 2018 09:02:32 +0000 (10:02 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 7 Dec 2018 09:54:42 +0000 (10:54 +0100)
commit1e809f7ef4d2402e31e4bc2f76753b9d3b1e0b6c
treea2ca92d1b741567afe71be3814a981208e0b3638
parent5b47f407810369e21f2c3123c13e29ff8609a7e4
mtd: rawnand: fsmc: Make conversion from chip to fsmc consistent

nand_to_fsmc() is used almost everywhere except in
fsmc_setup_data_interface() where nand_get_controller_data() is used
instead. Make that consistent and drop the nand_set_controller_data()
call in the probe path.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/fsmc_nand.c