diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2017-01-24 21:01:04 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-01-26 15:55:25 +0100 |
commit | 2141b0a1d718d5f75b581530ef4f9641c7c4284c (patch) | |
tree | e786bb3b31a47c83ab14d0ebd82db5cf9dfd3b50 /drivers/gpio/gpio-ws16c48.c | |
parent | gpio: 104-idio-16: Utilize devm_ functions in driver probe callback (diff) | |
download | linux-2141b0a1d718d5f75b581530ef4f9641c7c4284c.tar.xz linux-2141b0a1d718d5f75b581530ef4f9641c7c4284c.zip |
gpio: gpio-mm: 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 with
the devm_gpiochip_add_data call. In addition, the gpiomm_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 'drivers/gpio/gpio-ws16c48.c')
0 files changed, 0 insertions, 0 deletions