Re: [RFC 06/17] usb/ehci: use platform helper in xilinx of

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 29, 2011 at 02:06:21PM +0400, Sergei Shtylyov wrote:
> Hello.
Hi Sergei,

> >-	irq = irq_of_parse_and_map(dn, 0);
> >+	irq = platform_get_irq(op, 0);
> >  	if (irq == NO_IRQ) {
> 
>    No, platform_get_irq() returns -ENXIO on failure. NO_IRQ is
> defined as 0 on PPC, IIRC.

Thanks for spotting this. It should check < 0.

> WBR, Sergei

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux