Input: synaptics-rmi4 - fix handling failures from rmi_enable_sensor
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 24 Mar 2017 21:28:28 +0000 (14:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Apr 2017 23:23:59 +0000 (16:23 -0700)
commit8cf0adf2f8c3f9f30ba4f1b79e051993aea158d7
tree65117c1c048e81a8cc8e5a93314c80a5d11ff21c
parentf6c4442bfa0812efbb5d54db01a17a7ba0fc9298
Input: synaptics-rmi4 - fix handling failures from rmi_enable_sensor

If rmi_enable_sensor() fails in rmi_driver_probe(), we should not return
immediately, but disable IRQs and tear down function list.

Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_driver.c