mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mtd: rawnand: Inline onfi_get_async_timing_mode()
onfi_get_async_timing_mode() is only used in one place inside nand_base.c. Let's inline the code and kill the helper. Signed-off-by: Boris Brezillon <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
This commit is contained in:
parent
c7921bb32a
commit
462f35d3e5
2 changed files with 3 additions and 11 deletions
|
|
@ -1310,8 +1310,9 @@ static int nand_init_data_interface(struct nand_chip *chip)
|
|||
* if the NAND does not support ONFI, fallback to the default ONFI
|
||||
* timing mode.
|
||||
*/
|
||||
modes = onfi_get_async_timing_mode(chip);
|
||||
if (modes == ONFI_TIMING_MODE_UNKNOWN) {
|
||||
if (chip->parameters.onfi) {
|
||||
modes = chip->parameters.onfi->async_timing_mode;
|
||||
} else {
|
||||
if (!chip->onfi_timing_mode_default)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue