From: Cyrill V. Gorcunov Date: Sun, 18 Feb 2007 06:44:02 +0000 (-0500) Subject: Input: HIL - fix improper call to release_region() X-Git-Tag: v2.6.21-rc1~69^2~1 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=2a575f11fb8e13d6bbdefaa591e9406200674402;p=linux.git Input: HIL - fix improper call to release_region() Do not call release_region() if the code has been compiled without CONFIG_HP300 support. Signed-off-by: Cyrill V. Gorcunov Acked-by: Helge Deller Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/hilkbd.c b/drivers/input/keyboard/hilkbd.c index 255a6ec75a48..4de4dc297d50 100644 --- a/drivers/input/keyboard/hilkbd.c +++ b/drivers/input/keyboard/hilkbd.c @@ -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;