Input: hp680_ts_input - ensure arguments to request_irq and free_irq are compatible
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 11 Mar 2012 23:06:03 +0000 (16:06 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 13 Mar 2012 05:17:56 +0000 (22:17 -0700)
Change 0 to NULL in the last argument of request_irq, since the argument
should have pointer type and so that the last argument of request_irq
syntactically matches the second argument of the later call to free_irq.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/hp680_ts_input.c

index 639a6044183db76e2b748dbd74126b3ce1627899..85cf9bee80183bc117475cc562af0fac459b2473 100644 (file)
@@ -93,7 +93,7 @@ static int __init hp680_ts_init(void)
        hp680_ts_dev->phys = "hp680_ts/input0";
 
        if (request_irq(HP680_TS_IRQ, hp680_ts_interrupt,
-                       0, MODNAME, 0) < 0) {
+                       0, MODNAME, NULL) < 0) {
                printk(KERN_ERR "hp680_touchscreen.c: Can't allocate irq %d\n",
                       HP680_TS_IRQ);
                err = -EBUSY;