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 <gorcunov@gmail.com> Acked-by: Helge Deller <deller@gmx.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
00a8691ca6
commit
2a575f11fb
@ -294,8 +294,10 @@ err3:
|
|||||||
disable_irq(HIL_IRQ);
|
disable_irq(HIL_IRQ);
|
||||||
free_irq(HIL_IRQ, hil_dev.dev_id);
|
free_irq(HIL_IRQ, hil_dev.dev_id);
|
||||||
err2:
|
err2:
|
||||||
|
#if defined(CONFIG_HP300)
|
||||||
release_region(HILBASE + HIL_DATA, 2);
|
release_region(HILBASE + HIL_DATA, 2);
|
||||||
err1:
|
err1:
|
||||||
|
#endif
|
||||||
input_free_device(hil_dev.dev);
|
input_free_device(hil_dev.dev);
|
||||||
hil_dev.dev = NULL;
|
hil_dev.dev = NULL;
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user