touchscreen: Fix sign bug
authorKulikov Vasiliy <segooon@gmail.com>
Thu, 15 Jul 2010 18:43:54 +0000 (22:43 +0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 12 Aug 2010 09:27:59 +0000 (11:27 +0200)
platform_get_irq_byname() can return negative results, it is not seen to
unsigned ts_irq. Make it signed.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-By: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/input/touchscreen/stmpe-ts.c

index 77f4374b216d61259b458e48b33bb5d0c96fefdd..656148ec00277d32ee2c7b2d24e6dba673375efb 100644 (file)
@@ -269,7 +269,7 @@ static int __devinit stmpe_input_probe(struct platform_device *pdev)
        struct input_dev *idev;
        struct stmpe_ts_platform_data *ts_pdata = NULL;
        int ret = 0;
-       unsigned int ts_irq;
+       int ts_irq;
 
        ts_irq = platform_get_irq_byname(pdev, "FIFO_TH");
        if (ts_irq < 0)