lkml.org 
[lkml]   [2014]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 1/4 v4] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver
Date
> > +		if (pp->idx == 0 &&
> > + of_property_read_bool(port_np, "interrupt-controller")) {
> > + pp->irq = irq_of_parse_and_map(port_np, 0);
> > + if (!pp->irq) {
> > + dev_warn(dev, "no irq for bank %s\n",
> > + port_np->full_name);
> > + }
> > + } else {
> > + pp->irq = 0;
> > + }
>
> The else clause is not needed since pp->irq == 0 already, right?
>
Yes, while call kcalloc, the memory is set to '0'. I will improve it.


\
 
 \ /
  Last update: 2014-09-17 09:41    [W:0.033 / U:1.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site