Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure
authorAxel Lin <axel.lin@gmail.com>
Thu, 28 Apr 2011 04:41:19 +0000 (21:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Apr 2011 06:11:33 +0000 (23:11 -0700)
commit5c9db64888ecabfb170081335f30e3d7192fbcf4
tree6fa985a63548bae965d89c70c964095ea07f359f
parent60c8ba6478bb483ecd6069f566d02e33d319e72e
Input: twl4030-pwrbutton - fix a leak of the IRQ during init failure

In twl4030_pwrbutton_probe error path, free_irq() was using NULL rather than
the driver data as the data pointer so free_irq() wouldn't have matched.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/twl4030-pwrbutton.c