]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
usb: gadget: Removed NO_IRQ
authorSubbaraya Sundeep Bhatta <subbaraya.sundeep.bhatta@xilinx.com>
Thu, 14 Mar 2013 10:49:33 +0000 (16:19 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 15 Mar 2013 17:35:26 +0000 (18:35 +0100)
Updated usb_of_probe not to use NO_IRQ

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
drivers/usb/gadget/xilinx_udc.c

index 05e0e80d0f060370cb3fac905b8a670d85ca9ce4..cdaffb8b6bdf0cd1895cff0be655f3d3936f164c 100644 (file)
@@ -2376,7 +2376,7 @@ usb_of_probe(struct of_device *op, const struct of_device_id *match)
        }
 
        rc = of_irq_to_resource(np, 0, &irq_res);
-       if (rc == NO_IRQ) {
+       if (rc <= 0) {
                dev_err(&op->dev, "No IRQ found\n");
                return rc;
        }