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 24
24
#define FSL_UPM_WAIT_WRITE_BUFFER 0x4
25
25
26
26
struct fsl_upm_nand {
27
+ struct nand_controller base ;
27
28
struct device * dev ;
28
29
struct nand_chip chip ;
29
30
int last_ctrl ;
@@ -167,6 +168,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun,
167
168
if (!fun -> rnb_gpio [0 ])
168
169
fun -> chip .legacy .dev_ready = fun_chip_ready ;
169
170
171
+ fun -> chip .controller = & fun -> base ;
170
172
mtd -> dev .parent = fun -> dev ;
171
173
172
174
flash_np = of_get_next_child (upm_np , NULL );
@@ -268,6 +270,7 @@ static int fun_probe(struct platform_device *ofdev)
268
270
fun -> wait_flags = FSL_UPM_WAIT_RUN_PATTERN |
269
271
FSL_UPM_WAIT_WRITE_BYTE ;
270
272
273
+ nand_controller_init (& fun -> base );
271
274
fun -> dev = & ofdev -> dev ;
272
275
fun -> last_ctrl = NAND_CLE ;
273
276
You can’t perform that action at this time.
0 commit comments