Re: [PATCH 3/5] gpio: 104-idio-16: Utilize devm_ functions in driver probe callback

From: Linus Walleij
Date: Thu Jan 26 2017 - 09:55:08 EST


On Tue, Jan 24, 2017 at 9:00 PM, William Breathitt Gray
<vilhelm.gray@xxxxxxxxx> wrote:

> 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@xxxxxxxxx>

Patch applied.

Yours,
Linus Walleij