summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-15 22:43:54 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-12 11:27:59 +0200
commit3faeb35ccc57e1af70c54b82063fdf4a88846084 (patch)
tree4e67350c0c6c18fa2e10cb4f7f63cdfdea9f0d5c /drivers/input
parent31fc03df5df364100a41134783c02490fbd25745 (diff)
downloadtalos-obmc-linux-3faeb35ccc57e1af70c54b82063fdf4a88846084.tar.gz
talos-obmc-linux-3faeb35ccc57e1af70c54b82063fdf4a88846084.zip
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 <segooon@gmail.com> Acked-By: Luotao Fu <l.fu@pengutronix.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/stmpe-ts.c2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud