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

2017-01-26 Thread Linus Walleij
On Tue, Jan 24, 2017 at 9:00 PM, William Breathitt Gray 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

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

2017-01-26 Thread Linus Walleij
On Tue, Jan 24, 2017 at 9:00 PM, William Breathitt Gray 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

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

2017-01-24 Thread William Breathitt Gray
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

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

2017-01-24 Thread William Breathitt Gray
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