aboutsummaryrefslogtreecommitdiffstats
path: root/tools/spi/spidev_test.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-06-05 18:42:27 +0800
committerMark Brown <broonie@kernel.org>2016-09-14 16:05:35 +0100
commit42531686639d6a3fe49518f2baca3f7256708242 (patch)
tree345ba0762f7dc7c20f47adc7134341b2e2d0d5f5 /tools/spi/spidev_test.c
parentLinux 4.8-rc1 (diff)
downloadlinux-dev-42531686639d6a3fe49518f2baca3f7256708242.tar.xz
linux-dev-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 'tools/spi/spidev_test.c')
0 files changed, 0 insertions, 0 deletions