提交 2a575f11 编写于 作者: C Cyrill V. Gorcunov 提交者: Dmitry Torokhov

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: NCyrill V. Gorcunov <gorcunov@gmail.com>
Acked-by: NHelge Deller <deller@gmx.de>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 00a8691c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册