diff options
author | 2017-01-24 15:00:43 -0500 | |
---|---|---|
committer | 2017-01-26 15:53:24 +0100 | |
commit | e43fee60344ae4b64cfb4ddeb5355c86606681fa (patch) | |
tree | a6d69a4f0aea19b7961a985c5f82ffee03a2ab5c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: 104-dio-48e: Utilize devm_ functions in driver probe callback (diff) | |
download | linux-rng-e43fee60344ae4b64cfb4ddeb5355c86606681fa.tar.xz linux-rng-e43fee60344ae4b64cfb4ddeb5355c86606681fa.zip |
gpio: 104-idi-48: 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 idi_48_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