diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-21 01:57:38 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-08 13:54:16 +0100 |
commit | 01d35cabd5abda28c352f63c87109c477fc84886 (patch) | |
tree | 15aea3f532ec22ddc7994933b3db97a710c0763a /Documentation/crypto | |
parent | a2e373438f72391493a4425efc1b82030b6b4fd5 (diff) | |
download | linux-01d35cabd5abda28c352f63c87109c477fc84886.tar.gz |
nvmem: imx-iim: use stack for nvmem_config instead of malloc'ing it
nvmem_register() copies all the members of nvmem_config to
nvmem_device. So, nvmem_config is one-time use data during
probing. There is no point to keep it until the driver detach.
Using stack should be no problem because nvmem_config is pretty
small.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/crypto')
0 files changed, 0 insertions, 0 deletions