summaryrefslogtreecommitdiff
path: root/drivers/edac/cpc925_edac.c
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2017-01-24 15:00:54 -0500
committerLinus Walleij <linus.walleij@linaro.org>2017-01-26 15:54:28 +0100
commit837143d356fd066ed6fb0a3a91700d66a7916841 (patch)
tree7a2a14a729c1c818415109b2b89ebb73e36b4e3a /drivers/edac/cpc925_edac.c
parente43fee60344ae4b64cfb4ddeb5355c86606681fa (diff)
gpio: 104-idio-16: 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 idio_16_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/edac/cpc925_edac.c')
0 files changed, 0 insertions, 0 deletions