diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-06-05 12:42:27 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-14 17:05:35 +0200 |
commit | 42531686639d6a3fe49518f2baca3f7256708242 (patch) | |
tree | 345ba0762f7dc7c20f47adc7134341b2e2d0d5f5 /drivers/spi/Kconfig | |
parent | Linux 4.8-rc1 (diff) | |
download | linux-42531686639d6a3fe49518f2baca3f7256708242.tar.xz linux-42531686639d6a3fe49518f2baca3f7256708242.zip |
spi: st-ssc4: Fix misuse of devm_gpio_request/devm_gpio_free APIs
devm_* API is supposed to be used only in probe function call.
The resource is allocated at 'probe' and free automatically at 'remove'.
Usage of devm_* functions outside probe sometimes leads to resource leak.
Thus avoid using devm_* APIs in .setup/.cleanup callbacks.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/Kconfig')
0 files changed, 0 insertions, 0 deletions