Input: cyapa - switch to using managed resources
authorDudley Du <dudley.dulixin@gmail.com>
Sun, 9 Nov 2014 20:36:34 +0000 (12:36 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Nov 2014 06:59:48 +0000 (22:59 -0800)
commitb1cfa7b4388285c0f0b486f152ab0cb18612c779
tree6ad423475d8f90c72633865e21957017398ea895
parentbd447b61c49fc26f0299587db3e6d66da49dc529
Input: cyapa - switch to using managed resources

Use of managed resources simplifies error handling and device removal code.

Signed-off-by: Dudley Du <dudl@cypress.com>
[Dmitry: added open/close methods so cyapa_remove is no longer needed.]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa.c