The patch number 8039 was added via Guennadi Liakhovetski <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Guennadi Liakhovetski  <[EMAIL PROTECTED]>
pxa-camera: fix platform_get_irq() error handling.


platform_get_irq() returns a negative value on error, not 0.

Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/pxa_camera.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -r 04ddbe145932 -r 2d2b7431aaf2 linux/drivers/media/video/pxa_camera.c
--- a/linux/drivers/media/video/pxa_camera.c    Tue Jun 10 15:27:29 2008 -0300
+++ b/linux/drivers/media/video/pxa_camera.c    Fri Jun 13 11:03:45 2008 +0200
@@ -1019,12 +1019,12 @@ static int pxa_camera_probe(struct platf
        struct pxa_camera_dev *pcdev;
        struct resource *res;
        void __iomem *base;
-       unsigned int irq;
+       int irq;
        int err = 0;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        irq = platform_get_irq(pdev, 0);
-       if (!res || !irq) {
+       if (!res || irq < 0) {
                err = -ENODEV;
                goto exit;
        }


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/2d2b7431aaf22199335cd755c6e92f566a4b77cc

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to