Skip to content

Commit

Permalink
Input: HIL - fix improper call to release_region()
Browse files Browse the repository at this point in the history
Do not call release_region() if the code has been compiled
without CONFIG_HP300 support.

Signed-off-by: Cyrill V. Gorcunov <gorcunov@gmail.com>
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Cyrill V. Gorcunov authored and Dmitry Torokhov committed Feb 18, 2007
1 parent 00a8691 commit 2a575f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/input/keyboard/hilkbd.c
Original file line number Diff line number Diff line change
@@ -294,8 +294,10 @@ hil_keyb_init(void)
disable_irq(HIL_IRQ);
free_irq(HIL_IRQ, hil_dev.dev_id);
err2:
#if defined(CONFIG_HP300)
release_region(HILBASE + HIL_DATA, 2);
err1:
#endif
input_free_device(hil_dev.dev);
hil_dev.dev = NULL;
return err;

0 comments on commit 2a575f1

Please sign in to comment.