Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1566106

[PATCH 0/5] gpio: Utilize devm_ functions in driver probe callbacks

From William Breathitt Gray <vilhelm.gray@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 0/5] gpio: Utilize devm_ functions in driver probe callbacks
Date 2017-01-24 21:10 +0100
Message-ID <t3fzI-kX-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The devm_ resource manager functions allow memory to be automatically
released when a device is unbound. This patchset takes advantage of the
resource manager functions and replaces gpiochip_add_data calls and
request_irq calls with devm_gpiochip_add_data calls and devm_request_irq
calls respectively.

A convenient outcome of these changes is the removal of the respective
driver remove callback functions for these drivers; now that clean-up is
handled automatically when devices are unbound, custom driver remove
functions are no longer necessary for these drivers.

William Breathitt Gray (5):
  gpio: 104-dio-48e: Utilize devm_ functions in driver probe callback
  gpio: 104-idi-48: Utilize devm_ functions in driver probe callback
  gpio: 104-idio-16: Utilize devm_ functions in driver probe callback
  gpio: gpio-mm: Utilize devm_ functions in driver probe callback
  gpio: ws16c48: Utilize devm_ functions in driver probe callback

 drivers/gpio/gpio-104-dio-48e.c | 27 +++++----------------------
 drivers/gpio/gpio-104-idi-48.c  | 28 +++++-----------------------
 drivers/gpio/gpio-104-idio-16.c | 27 +++++----------------------
 drivers/gpio/gpio-gpio-mm.c     | 12 +-----------
 drivers/gpio/gpio-ws16c48.c     | 28 +++++-----------------------
 5 files changed, 21 insertions(+), 101 deletions(-)

-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] gpio: Utilize devm_ functions in driver probe callbacks William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-24 21:10 +0100
  [PATCH 5/5] gpio: ws16c48: Utilize devm_ functions in driver probe callback William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-24 21:10 +0100
    Re: [PATCH 5/5] gpio: ws16c48: Utilize devm_ functions in driver  probe callback Linus Walleij <linus.walleij@linaro.org> - 2017-01-26 16:00 +0100
  [PATCH 4/5] gpio: gpio-mm: Utilize devm_ functions in driver probe callback William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-24 21:10 +0100
    Re: [PATCH 4/5] gpio: gpio-mm: Utilize devm_ functions in driver  probe callback Linus Walleij <linus.walleij@linaro.org> - 2017-01-26 16:00 +0100
  [PATCH 3/5] gpio: 104-idio-16: Utilize devm_ functions in driver probe callback William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-24 21:10 +0100
    Re: [PATCH 3/5] gpio: 104-idio-16: Utilize devm_ functions in driver  probe callback Linus Walleij <linus.walleij@linaro.org> - 2017-01-26 16:00 +0100
  [PATCH 1/5] gpio: 104-dio-48e: Utilize devm_ functions in driver probe callback William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-24 21:10 +0100
    Re: [PATCH 1/5] gpio: 104-dio-48e: Utilize devm_ functions in driver  probe callback Linus Walleij <linus.walleij@linaro.org> - 2017-01-26 16:00 +0100

csiph-web