OSDN Git Service

mtd: nand: denali: squash denali_enable_dma() helper into caller
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 22 Sep 2017 03:46:41 +0000 (12:46 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 22 Sep 2017 07:04:22 +0000 (09:04 +0200)
commit586a2c52909df453ed1b6239283744b0851ccf81
tree3b661299434db3d85c705c8930dc087cd934e1c5
parentda4734be238341b873a94027fe24101b3e7c5c53
mtd: nand: denali: squash denali_enable_dma() helper into caller

This helper just sets/clears a flag of DMA_ENABLE register (with
register read-back, I do not know why it is necessary).

Move the register write code to the caller, and remove the helper.
It works for me without the register read-back.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c