Input: altera_ps2 - switch to using managed resources
authorTobias Klauser <tklauser@distanz.ch>
Fri, 31 Oct 2014 16:16:51 +0000 (09:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 31 Oct 2014 16:41:29 +0000 (09:41 -0700)
commita823c26790467da8504f116c725d092d7ac88588
tree827f5f61a982a1375e04cdc97a7c488e619bc7f4
parentca96ea86eed4b2645637dfe3d38b7d05191a79fe
Input: altera_ps2 - switch to using managed resources

Use them devm_ managed resources API to simplify error handling in
altera_ps2_probe() and to reduce the size of altera_ps2_remove() and the
ps2if struct.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/altera_ps2.c