Dear Fabio Estevam,

> Hi Marek,
> 
> On 6/29/12, Marek Vasut <[email protected]> wrote:
> >     iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > 
> > -   if (!iores)
> > +   dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
> > +   irq_err = platform_get_irq(pdev, 0);
> > +   irq_dma = platform_get_irq(pdev, 1);
> > +   if (!iores || irq_err < 0 || irq_dma < 0)
> 
> Shouldn't you check for dmares < 0 here too?

Yes. What about the rest of the patches? Are they applicable?

Best regards,
Marek Vasut

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to