lkml.org 
[lkml]   [2015]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/5] mfd: arizona: Add missing gpio_free in arizona_dev_exit
On Tue, Mar 24, 2015 at 09:06:43AM -0700, Mark Brown wrote:
> On Tue, Mar 24, 2015 at 02:59:48PM +0000, Charles Keepax wrote:
>
> > - if (arizona->pdata.reset)
> > + if (arizona->pdata.reset) {
> > gpio_set_value_cansleep(arizona->pdata.reset, 0);
> > + gpio_free(arizona->pdata.reset);
> > + }
>
> Or acquire the GPIO with devm_ and avoid having to explicitly free it at
> all?

Ooops... yeah will respin for that.

Thanks,
Charles


\
 
 \ /
  Last update: 2015-03-24 18:01    [W:0.078 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site