From: Kulikov Vasiliy Date: Thu, 15 Jul 2010 18:43:54 +0000 (+0400) Subject: touchscreen: Fix sign bug X-Git-Tag: v2.6.36-rc1~59^2~20 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=3faeb35ccc57e1af70c54b82063fdf4a88846084;p=linux.git touchscreen: Fix sign bug platform_get_irq_byname() can return negative results, it is not seen to unsigned ts_irq. Make it signed. Signed-off-by: Kulikov Vasiliy Acked-By: Luotao Fu Signed-off-by: Samuel Ortiz --- diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c index 77f4374b216d..656148ec0027 100644 --- a/drivers/input/touchscreen/stmpe-ts.c +++ b/drivers/input/touchscreen/stmpe-ts.c @@ -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)