mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mtd: rawnand: denali: get ->setup_data_interface() working again
Commit7a08dbaedd("mtd: rawnand: Move ->setup_data_interface() to nand_controller_ops") missed to invert the if-conditonal for denali. Since then, the Denali NAND driver cannnot invoke setup_data_interface. Fixes:7a08dbaedd("mtd: rawnand: Move ->setup_data_interface() to nand_controller_ops") Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Miquel Raynal <[email protected]> Signed-off-by: Boris Brezillon <[email protected]>
This commit is contained in:
parent
01eeb927bb
commit
d311e0c27b
1 changed files with 1 additions and 1 deletions
|
|
@ -1322,7 +1322,7 @@ int denali_init(struct denali_nand_info *denali)
|
|||
}
|
||||
|
||||
/* clk rate info is needed for setup_data_interface */
|
||||
if (denali->clk_rate && denali->clk_x_rate)
|
||||
if (!denali->clk_rate || !denali->clk_x_rate)
|
||||
chip->options |= NAND_KEEP_TIMINGS;
|
||||
|
||||
chip->legacy.dummy_controller.ops = &denali_controller_ops;
|
||||
|
|
|
|||
Loading…
Reference in a new issue