diff options
author | 2017-01-24 15:00:31 -0500 | |
---|---|---|
committer | 2017-01-26 15:52:38 +0100 | |
commit | 00de1a518aebed3bcf44389cd5dae12a77ade726 (patch) | |
tree | 97442518a7815f365302a8e6c4b80e1a8ea489e2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'ib-pinctrl-genprops' of /home/linus/linux-pinctrl into devel (diff) | |
download | linux-dev-00de1a518aebed3bcf44389cd5dae12a77ade726.tar.xz linux-dev-00de1a518aebed3bcf44389cd5dae12a77ade726.zip |
gpio: 104-dio-48e: Utilize devm_ functions in driver probe callback
The devm_ resource manager functions allow memory to be automatically
released when a device is unbound. This patch takes advantage of the
resource manager functions and replaces the gpiochip_add_data call and
request_irq call with the devm_gpiochip_add_data call and
devm_request_irq call respectively. In addition, the dio48e_remove
function has been removed as no longer necessary due to the use of the
relevant devm_ resource manager functions.
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions