Skip to content

Commit

Permalink
Input: hp680_ts_input - ensure arguments to request_irq and free_irq …
Browse files Browse the repository at this point in the history
…are compatible

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>
  • Loading branch information
Julia Lawall authored and Dmitry Torokhov committed Mar 13, 2012
1 parent 05b7b84 commit b51425b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/hp680_ts_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b51425b

Please sign in to comment.