summaryrefslogtreecommitdiff
path: root/tools/gpio
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2017-01-24 15:01:15 -0500
committerLinus Walleij <linus.walleij@linaro.org>2017-01-26 15:56:30 +0100
commitb4cad1bc5ff63881b92a0fe9683723b4379d8c40 (patch)
tree086b3ee698cc44a24fe4836c39dc3b0ae0e4361d /tools/gpio
parent2141b0a1d718d5f75b581530ef4f9641c7c4284c (diff)
gpio: ws16c48: 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 ws16c48_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/gpio')
0 files changed, 0 insertions, 0 deletions