diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-06-13 15:45:48 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-06-20 09:14:53 +0200 |
commit | 7d370b2c255612569818134ae0a6d0e46eabfe8b (patch) | |
tree | 99e1e05b9a16623fa8f382c18340cbedb511cdc5 /drivers/of | |
parent | mtd: nand: denali: skip driver internal bounce buffer when possible (diff) | |
download | linux-7d370b2c255612569818134ae0a6d0e46eabfe8b.tar.xz linux-7d370b2c255612569818134ae0a6d0e46eabfe8b.zip |
mtd: nand: denali: use non-managed kmalloc() for DMA buffer
As Russell and Lars stated in the discussion [1], using
devm_k*alloc() with DMA is not a good idea.
Let's use kmalloc (not kzalloc because no need for zero-out).
Also, allocate the buffer as late as possible because it must be
freed for any error that follows.
[1] https://lkml.org/lkml/2017/3/8/693
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions