File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 27
27
#include <linux/of_address.h>
28
28
29
29
struct gpiomtd {
30
+ struct nand_controller base ;
30
31
void __iomem * io_sync ;
31
32
struct nand_chip nand_chip ;
32
33
struct gpio_nand_platdata plat ;
@@ -273,13 +274,15 @@ static int gpio_nand_probe(struct platform_device *pdev)
273
274
if (gpiomtd -> rdy )
274
275
chip -> legacy .dev_ready = gpio_nand_devready ;
275
276
277
+ nand_controller_init (& gpiomtd -> base );
276
278
nand_set_flash_node (chip , pdev -> dev .of_node );
277
279
chip -> legacy .IO_ADDR_W = chip -> legacy .IO_ADDR_R ;
278
280
chip -> ecc .mode = NAND_ECC_SOFT ;
279
281
chip -> ecc .algo = NAND_ECC_HAMMING ;
280
282
chip -> options = gpiomtd -> plat .options ;
281
283
chip -> legacy .chip_delay = gpiomtd -> plat .chip_delay ;
282
284
chip -> legacy .cmd_ctrl = gpio_nand_cmd_ctrl ;
285
+ chip -> controller = & gpiomtd -> base ;
283
286
284
287
mtd = nand_to_mtd (chip );
285
288
mtd -> dev .parent = dev ;
You can’t perform that action at this time.
0 commit comments