Input: synaptics-rmi4 - do not delete interrupt memory too early
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 18 Jan 2018 00:18:27 +0000 (16:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:39:24 +0000 (17:39 +0100)
commit01ab9886ea7815d41a4ee435524c3fce127e7290
tree23dbe0c7344e98599adbf7714b38a9943f2525ac
parentfced3c99e7264237aeba0b420e892cfa7bb36b9c
Input: synaptics-rmi4 - do not delete interrupt memory too early

commit a1ab69021a584d952e6548a44b93760547b1b6b5 upstream.

We want to free memory reserved for interrupt mask handling only after we
free functions, as function drivers might want to mask interrupts. This is
needed for the followup patch to the F03 that would implement unmasking and
masking interrupts from the serio pass-through port open() and close()
methods.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/rmi4/rmi_driver.c